@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary-blue: #1976d2;
    --input-border: #e2e8f0;
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --bg-color: #f1f8ff;
}

body {
    font-family: 'Inter', sans-serif !important;
    background: linear-gradient(135deg, #e4f2ff 0%, #f0f7ff 50%, #f8fafc 100%);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-wrapper {
    display: flex;
    flex: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Left Side - Visual Text */
.auth-visual {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem 4rem 4rem;
    position: relative;
}

.auth-visual-content {
    max-width: 550px;
    margin-top: -50px;
}

.auth-visual h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.auth-visual h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.auth-visual p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
}

.auth-visual-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5rem;
    font-size: 0.85rem;
    max-width: 550px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
}

.footer-links a {
    color: var(--primary-blue);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Right Side - Form */
.auth-form-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-box {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem 3rem;
    box-shadow: var(--box-shadow);
}

.auth-box-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.auth-box-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

.auth-box-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 250px;
}

.box-logo {
    height: 35px;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    border: 1px solid var(--input-border);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: #334155;
    background-color: #fbfbfc;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
    background-color: #fff;
}

.text-danger {
    color: #ef4444 !important;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-icon {
    width: 20px;
    display: flex;
    justify-content: center;
    color: #475569;
    font-size: 1.1rem;
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
}

.input-wrapper .form-control {
    padding-right: 2.5rem;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
}

.captcha-equation {
    background: #f8fafc;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.captcha-input {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.5rem;
    min-width: 0;
}

.btn-primary {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    padding: 0.8rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 6px rgba(25, 118, 210, 0.2);
}

.btn-primary:hover {
    background-color: #1565c0 !important;
}

.terms-text {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.terms-text a {
    color: var(--primary-blue);
    text-decoration: none;
}

.page-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.page-footer strong {
    color: var(--primary-blue);
}

@media (max-width: 992px) {
    .auth-wrapper {
        flex-direction: column;
    }
    .auth-visual {
        padding: 2rem;
        text-align: center;
    }
    .auth-visual-content {
        margin: 0 auto;
    }
    .auth-visual-footer {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    .footer-links a {
        margin: 0 0.5rem;
    }
}
