body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
}

/* Split Layout */
.split-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.left-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(82, 136, 193, 0.1), transparent 70%);
    position: relative;
}

.left-panel::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('/static/pattern.png');
    opacity: 0.05;
}

.brand-content {
    text-align: center;
    z-index: 1;
}

.brand-logo {
    max-width: 200px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.brand-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.right-panel {
    flex: 0 0 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(40px);
    border-left: 1px solid var(--border-glass);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.register-form-container {
    width: 100%;
    max-width: 380px;
    padding: 40px;
    overflow-y: auto;
    max-height: 100vh;
}

h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Floating Labels */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.fluent-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-muted);
    border-radius: 0;
    padding: 10px 0;
    font-size: 16px;
    color: var(--text-primary);
    width: 100%;
    transition: border-color 0.3s;
}

.fluent-input:focus {
    border-bottom-color: var(--primary-color);
    box-shadow: none;
    background: transparent;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 16px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: 0.2s ease all;
}

.fluent-input:focus~label,
.fluent-input:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 12px;
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 0;
    top: 10px;
    /* Align with input text */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 0 5px;
    z-index: 10;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary-color);
}

#message-box {
    margin-bottom: 20px;
    min-height: 20px;
    position: relative;
    z-index: 5;
    word-wrap: break-word;
}

#message-box .error {
    color: #ff8a80;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.2);
    border-radius: 8px;
    padding: 10px;
    font-size: 0.9rem;
}

#message-box .success {
    color: #69f0ae;
    background: rgba(105, 240, 174, 0.1);
    border: 1px solid rgba(105, 240, 174, 0.2);
    border-radius: 8px;
    padding: 10px;
    font-size: 0.9rem;
}

.error-msg {
    color: #ff8a80;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        flex: 1;
        width: 100%;
        border-left: none;
        background: var(--bg-main);
    }

    .register-form-container {
        padding: 20px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #333;
    width: 300px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.captcha-container {
    background: #fff;
    padding: 10px;
    margin: 15px 0;
    border-radius: 4px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
}

.btn-secondary {
    background: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-bottom: 10px;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
}