body {
    min-height: 100vh;
    background: rgb(43, 59, 53);
    background-image:
        radial-gradient(ellipse 70% 60% at 80% 80%, rgba(46, 204, 113, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 10%, rgba(46, 204, 113, 0.07) 0%, transparent 55%);
    font-family: 'DM Sans', sans-serif;
}

.auth-wrapper {
    min-height: calc(100vh - 66px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(1, 20, 28, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(46, 204, 113, 0.18);
    border-radius: 20px;
    padding: 44px 40px 40px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    animation: fadeUp 0.45s cubic-bezier(.22, 1, .36, 1) both;
}

.auth-logo {
    display: block;
    height: 44px;
    margin: 0 auto 28px;
}

.auth-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #e8e8ff;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.auth-sub {
    font-size: 0.82rem;
    color: rgba(232, 232, 255, 0.45);
    text-align: center;
    margin-bottom: 32px;
}

.auth-field {
    margin-bottom: 18px;
    position: relative;
}

.auth-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(232, 232, 255, 0.65);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: rgba(232, 232, 255, 0.3);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 11px 16px 11px 40px;
    color: #e8e8ff;
    font-size: 0.92rem;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: rgba(232, 232, 255, 0.25);
}

.auth-input:focus {
    border-color: rgba(46, 204, 113, 0.55);
    background: rgba(46, 204, 113, 0.05);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.12);
}

.auth-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 100px rgba(1, 20, 28, 0.95) inset;
    -webkit-text-fill-color: #e8e8ff;
}

.pwd-strength {
    margin-top: 7px;
    display: flex;
    gap: 4px;
}

.pwd-bar {
    height: 3px;
    flex: 1;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
}

.pwd-bar.weak {
    background: #e74c3c;
}

.pwd-bar.medium {
    background: #f39c12;
}

.pwd-bar.strong {
    background: #2ecc71;
}

.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-btn {
    width: 100%;
    padding: 13px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #0e1a12;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease, filter 0.2s ease;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.35);
    margin-top: 10px;
}

.auth-btn:hover {
    filter: brightness(1.07);
    box-shadow: 0 6px 28px rgba(46, 204, 113, 0.5);
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.auth-footer {
    text-align: center;
    margin-top: 26px;
    font-size: 0.82rem;
    color: rgba(232, 232, 255, 0.4);
}

.auth-footer a {
    color: #2ecc71;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-footer a:hover {
    color: #55d98d;
}

.auth-alert {
    border-radius: 10px;
    font-size: 0.84rem;
    padding: 10px 14px;
    margin-top: 16px;
    text-align: center;
}

.auth-alert.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #ff8a7a;
}

.auth-alert.success {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #2ecc71;
}

/* "Check your inbox" state — hide the form */
.auth-card.email-sent .hide-on-sent {
    display: none;
}

.sent-message {
    display: none;
    text-align: center;
    padding: 10px 0 6px;
}

.auth-card.email-sent .sent-message {
    display: block;
}

.sent-icon {
    font-size: 3rem;
    margin-bottom: 14px;
    display: block;
}

.sent-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e8e8ff;
    margin-bottom: 8px;
}

.sent-body {
    font-size: 0.84rem;
    color: rgba(232, 232, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 20px;
}

.sent-body strong {
    color: #2ecc71;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: rgba(232, 232, 255, 0.2);
    font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.match-indicator {
    font-size: 0.73rem;
    margin-top: 5px;
    transition: color 0.2s ease;
    min-height: 1em;
}

.match-indicator.ok {
    color: #2ecc71;
}

.match-indicator.error {
    color: #ff8a7a;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
}

.auth-check input[type="checkbox"] {
    accent-color: #2ecc71;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.auth-check label {
    font-size: 0.78rem;
    color: rgba(232, 232, 255, 0.45);
    cursor: pointer;
    line-height: 1.5;
}

.auth-check a {
    color: #2ecc71;
    text-decoration: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 22px 28px;
    }

    .auth-row {
        grid-template-columns: 1fr;
    }
}