
.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 24px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: #1e293b;
    background:
            radial-gradient(900px 480px at 110% -10%, #dbe7ff 0%, transparent 55%),
            radial-gradient(700px 420px at -20% 120%, #e7eef8 0%, transparent 50%),
            #f4f7fb;
}

.circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-top-right {
    width: 275px;
    height: 275px;
    background: #e3edff;
    top: -80px;
    right: -85px;
}

.circle-bottom-left {
    width: 340px;
    height: 340px;
    background: #edf4ff;
    bottom: -150px;
    left: -70px;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 32px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e0e7f0;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(30, 60, 100, 0.08);
}

/* Brand */
.brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon img {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.6px;
}

.brand-name span {
    font-weight: 600;
}

.login-card h1 {
    margin: 0 0 8px;
    text-align: center;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.login-description {
    margin: 0 0 22px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.sso-button {
    width: 100%;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    background: #203fc4;
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    cursor: not-allowed;
    opacity: 0.75;
    transition: background 0.2s ease;
}

.sso-button svg,
.password-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sso-button:hover {
    background: #1834ac;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 18px 0;
}

.divider span {
    flex: 1;
    height: 1px;
    background: #e5eaf2;
}

.divider p {
    margin: 0;
    color: #8da0bd;
    font-size: 11px;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-field {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 9px;
    box-sizing: border-box;
    border: 1px solid #e2e5eb;
    border-radius: 9px;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.login-field:focus-within {
    border-color: #315ee8;
}

.login-field > svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: none;
    stroke: #8ba0c0;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-field input {
    min-width: 0;
    flex: 1;
    height: 100%;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #1e293b;
    font-family: inherit;
    font-size: 12px;
}

.login-field input::placeholder {
    color: #64748b;
    opacity: 1;
}

.password-toggle {
    flex-shrink: 0;
    display: flex;
    padding: 2px;
    border: none;
    background: transparent;
    color: #8ba0c0;
    font-size: 12px;
    cursor: pointer;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 1px 0 2px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    font-size: 12px;
    cursor: pointer;
}

.remember-me input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #2146cc;
    cursor: pointer;
}

.form-options a {
    color: #1760ff;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.form-options a:hover {
    text-decoration: underline;
}

/* Sign-in button */
.signin-button {
    width: 100%;
    height: 42px;
    margin-top: 4px;
    border: none;
    border-radius: 10px;
    background: #005df8;
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signin-button:hover {
    background: #3156d5;
}

/* Login error */
.error-message {
    margin: 0;
    color: #dc2626;
    font-size: 12px;
    text-align: center;
}


/* Field validation messages */
#emailError,
#passwordError {
    text-align: left;
    font-size: 12px;
    color: #dc2626;
    line-height: 1.4;
}

/* General login error */
#loginError {
    text-align: center;
    font-size: 12px;
    color: #dc2626;
    line-height: 1.4;
}

/* Invalid input field border */
.login-field:has(input.input-invalid) {
    border-color: #dc2626;
}

/* Validation message spacing */
.error-message {
    overflow-wrap: break-word;
}


/* Responsive design */
@media (max-width: 480px) {
    .login-page {
        padding: 20px;
    }

    .login-card {
        max-width: 360px;
        padding: 25px 22px;
    }

    .circle-top-right {
        width: 190px;
        height: 190px;
        top: -65px;
        right: -75px;
    }

    .circle-bottom-left {
        width: 230px;
        height: 230px;
        bottom: -110px;
        left: -80px;
    }

    .login-card h1 {
        font-size: 16px;
    }

    .login-description {
        font-size: 11px;
    }
}
