/* Venus login / signup — same shell as the protocol header */
body {
    background: rgb(24, 26, 32);
    font-family: var(--font-proxima-nova), "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: rgb(255, 255, 255);
}

.login-container::before,
.register-container::before {
    display: none;
}

.login-box,
.register-box,
.success-modal {
    background: rgb(30, 36, 49);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: 0 4px 15px 0 #0d1017, inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.login-logo,
.register-logo {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    color: #fff;
    font-size: 0;
    line-height: 1;
}

.login-logo img,
.register-logo img {
    display: inline-block;
    height: 44px;
    width: auto;
    max-width: 220px;
}

.login-subtitle,
.register-subtitle {
    color: rgb(170, 179, 202);
    font-size: 16px;
}

.form-group label {
    color: rgb(170, 179, 202);
    font-size: 13px;
    font-weight: 600;
}

.form-input {
    background: rgb(24, 29, 39);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
}

.form-input:focus {
    border-color: rgb(17, 153, 250);
    background: rgb(24, 29, 39);
    box-shadow: none;
}

.btn-login,
.btn-register,
.btn-signup,
.btn-confirm {
    background: rgb(17, 153, 250);
    color: #fff;
    -webkit-text-fill-color: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
}

.btn-login:hover,
.btn-register:hover,
.btn-signup:hover,
.btn-confirm:hover {
    background: rgb(52, 169, 255);
    color: #fff;
    border-color: rgb(52, 169, 255);
    transform: none;
    box-shadow: none;
}

.signup-link,
.login-link {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.signup-link p,
.login-link p,
.form-help {
    color: rgb(170, 179, 202);
}

.signup-link a:not(.btn-signup),
.login-link a:not(.btn-register) {
    color: rgb(17, 153, 250);
}

a.btn-signup,
a.btn-signup:hover,
a.btn-signup:focus,
.signup-link a.btn-signup,
.signup-link a.btn-signup:hover,
.signup-link a.btn-signup:focus {
    background: rgb(17, 153, 250);
    color: #fff;
    -webkit-text-fill-color: #fff;
    border: 0;
}

.auto-login input[type="checkbox"] {
    accent-color: rgb(17, 153, 250);
}

.success-icon-circle {
    background: rgb(17, 153, 250);
    box-shadow: none;
}

.auth-home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgb(210, 218, 234);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.auth-home-link:hover,
.auth-home-link:focus-visible {
    border-color: rgb(17, 153, 250);
    color: #fff;
}

.registration-progress {
    margin-bottom: 26px;
}

.registration-progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    color: rgb(170, 179, 202);
    font-size: 13px;
}

.registration-progress-label strong {
    color: #fff;
    font-size: 14px;
}

.registration-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.registration-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: rgb(17, 153, 250);
    transition: width 0.35s cubic-bezier(.22, 1, .36, 1);
}

.field-control {
    position: relative;
}

.field-control .form-input {
    padding-right: 48px;
}

.field-status-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    transform: translateY(-50%) scale(.65);
    transition: opacity .18s ease, transform .24s cubic-bezier(.22, 1, .36, 1), background-color .18s ease;
    pointer-events: none;
}

.form-group.is-valid .field-status-icon,
.form-group.is-invalid .field-status-icon,
.form-group.is-checking .field-status-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.form-group.is-valid .field-status-icon {
    background: #20b26b;
}

.form-group.is-invalid .field-status-icon {
    background: #e25757;
}

.form-group.is-checking .field-status-icon {
    background: rgb(17, 153, 250);
    animation: fieldStatusPulse .8s ease-in-out infinite alternate;
}

.form-group.is-valid .form-input {
    border-color: #20b26b;
    box-shadow: 0 0 0 2px rgba(32, 178, 107, .12);
}

.form-group.is-invalid .form-input {
    border-color: #e25757;
    box-shadow: 0 0 0 2px rgba(226, 87, 87, .12);
}

.field-status-message {
    min-height: 19px;
    margin-top: 6px;
    color: rgb(170, 179, 202);
    font-size: 12px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity .18s ease, transform .18s ease, color .18s ease;
}

.form-group.is-valid .field-status-message,
.form-group.is-invalid .field-status-message,
.form-group.is-checking .field-status-message {
    opacity: 1;
    transform: translateY(0);
}

.form-group.is-valid .field-status-message {
    color: #62d59a;
}

.form-group.is-invalid .field-status-message {
    color: #ff8585;
}

.btn-register:disabled {
    cursor: not-allowed;
    opacity: .55;
}

@keyframes fieldStatusPulse {
    from { opacity: .45; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .registration-progress-track span,
    .field-status-icon,
    .field-status-message {
        transition: none;
        animation: none;
    }
}

/* 페이지 내부에 흩어진 구형 모바일 확대값을 한 곳에서 정상화한다. */
@media (max-width: 991px) {
    body .login-container,
    body .register-container {
        width: 100%;
        min-height: 100dvh;
        padding: 24px 16px;
    }

    body .login-box,
    body .register-box {
        width: 100%;
        max-width: 480px;
        margin: auto;
        padding: 28px 22px;
        border-radius: 16px;
    }

    body .login-header,
    body .register-header {
        margin-bottom: 26px;
    }

    body .login-logo,
    body .register-logo {
        margin-bottom: 10px;
        font-size: 0;
        line-height: 1;
    }

    body .login-logo img,
    body .register-logo img {
        width: auto;
        height: 36px;
        max-width: 180px;
    }

    body .login-subtitle,
    body .register-subtitle {
        font-size: 18px;
        line-height: 1.45;
    }

    body .form-group {
        margin-bottom: 18px;
    }

    body .form-group label,
    body .form-help,
    body .form-error {
        font-size: 14px;
        line-height: 1.45;
    }

    body .form-input {
        width: 100%;
        min-height: 50px;
        padding: 12px 14px;
        font-size: 16px;
        line-height: 1.4;
    }

    body .btn-login,
    body .btn-register,
    body .btn-signup,
    body .btn-confirm,
    body .btn-wallet {
        min-height: 50px;
        padding: 12px 16px;
        font-size: 16px;
        line-height: 1.4;
    }

    body .login-options,
    body .signup-link,
    body .login-link {
        font-size: 15px;
        line-height: 1.5;
    }

    body .signup-link,
    body .login-link {
        margin-top: 24px;
        padding-top: 22px;
    }

    body .signup-link .btn-signup {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 50px;
        color: #fff;
        -webkit-text-fill-color: #fff;
    }

    body .wallet-warning-content {
        width: calc(100% - 32px);
        max-width: 440px;
        padding: 24px 20px;
    }

    body .warning-icon {
        font-size: 38px;
    }

    body .warning-title {
        font-size: 22px;
    }

    body .warning-message {
        font-size: 16px;
        line-height: 1.55;
    }
}

@media (max-width: 420px) {
    body .login-container,
    body .register-container {
        padding: 16px 12px;
    }

    body .login-box,
    body .register-box {
        padding: 24px 18px;
    }
}
