/**
 * EliteSuite User/Auth Related Styles
 * Password strength indicator and email verification display
 */

/* ========================================
   Verify Email Display
   ======================================== */
.verify-email-display {
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 500;
    color: var(--color-primary);
}

/* ========================================
   Password Strength Indicator
   ======================================== */
.password-strength {
    margin-top: 16px;
    padding: 14px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.strength-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strength-label-text {
    color: var(--color-text-muted);
    font-weight: 600;
}

.strength-label-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.strength-label-status.weak {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}
.strength-label-status.fair {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}
.strength-label-status.good {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
}
.strength-label-status.strong {
    background: rgba(132, 204, 22, 0.2);
    color: #a3e635;
}
.strength-label-status.excellent {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.strength-bar {
    height: 6px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.strength-fill.strength-1 {
    width: 20%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}
.strength-fill.strength-2 {
    width: 40%;
    background: linear-gradient(90deg, #f97316, #ea580c);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}
.strength-fill.strength-3 {
    width: 60%;
    background: linear-gradient(90deg, #eab308, #ca8a04);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}
.strength-fill.strength-4 {
    width: 80%;
    background: linear-gradient(90deg, #84cc16, #65a30d);
    box-shadow: 0 0 10px rgba(132, 204, 22, 0.5);
}
.strength-fill.strength-5 {
    width: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
}

.strength-requirements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px;
    font-size: 11px;
}

.strength-requirements .req {
    color: rgba(148, 163, 184, 0.6);
    transition: all 0.2s ease;
}

.strength-requirements .req.met {
    color: #10b981;
}

/* ========================================
   Accept Invite Screen (Mobile-Friendly)
   ======================================== */
.card-invite {
    max-width: 420px;
    text-align: center;
}

.invite-logo {
    font-size: 3rem !important;
    animation: celebrate 0.6s ease-out;
}

@keyframes celebrate {
    0% {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.card-title-invite {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-subtitle-invite {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Large touch-friendly inputs for mobile */
.form-input-large {
    font-size: 1.1rem;
    padding: 16px 18px;
    min-height: 56px;
}

/* Large CTA button for mobile */
.btn-large {
    font-size: 1.15rem;
    padding: 18px 24px;
    min-height: 60px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-accept-invite {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.btn-accept-invite:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-accept-invite:active {
    transform: translateY(0);
}

.invite-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.invite-footer-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .card-invite {
        margin: 16px;
        padding: 28px 20px;
    }

    .card-title-invite {
        font-size: 1.5rem;
    }

    .form-input-large {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 18px;
    }

    .btn-large {
        font-size: 1.1rem;
        padding: 20px;
    }

    .strength-requirements {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ========================================
   Expired Invite State
   ======================================== */
.invite-expired-state {
    text-align: center;
    padding: 20px 0;
}

.expired-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: wobble 0.6s ease;
}

@keyframes wobble {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.expired-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.expired-message {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.expired-action {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 24px;
}

.invite-expired-state .btn-secondary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.invite-expired-state .btn-secondary:hover {
    background: var(--color-border);
}
