/**
 * Resend Activation Page Specific Styles
 * Simple email input for activation email resending
 */

/* Import common auth styles */
@import url('../pages/auth-common.css');

/* Resend activation specific styling */
.auth-card {
    max-width: 420px; /* Standard width for email form */
}

/* Resend instructions */
.resend-instructions {
    background: #fef3c7;
    border: 1px solid #fed7aa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #92400e;
    text-align: center;
}

.resend-instructions .instruction-icon {
    color: #f59e0b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.resend-instructions h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.resend-instructions p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Email input with icon */
.email-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.email-input-group .form-control {
    padding-left: 2.5rem;
    font-size: 1rem;
    text-align: center;
}

.email-input-group .input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 10;
}

.email-input-group .form-control:focus ~ .input-icon {
    color: var(--primary-color);
}

/* Email validation indicator */
.email-validation {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
    text-align: center;
    min-height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.email-validation.checking {
    color: #6b7280;
}

.email-validation.valid {
    color: #10b981;
}

.email-validation.invalid {
    color: #ef4444;
}

.email-validation .validation-icon {
    font-size: 0.75rem;
}

/* Resend button */
.resend-button {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.resend-button .btn-icon {
    font-size: 1rem;
}

.resend-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.resend-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Rate limiting notice */
.rate-limit-notice {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    color: #991b1b;
    font-size: 0.875rem;
    text-align: center;
    display: none;
}

.rate-limit-notice.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.rate-limit-notice .limit-icon {
    color: #ef4444;
    margin-right: 0.25rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success state */
.resend-success {
    text-align: center;
    animation: fadeInScale 0.5s ease-out;
}

.resend-success .success-icon {
    color: #10b981;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.resend-success h3 {
    color: #166534;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.resend-success p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.resend-success .email-highlight {
    font-weight: 600;
    color: var(--primary-color);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Cooldown timer */
.cooldown-timer {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.cooldown-timer .timer-icon {
    color: #f59e0b;
    margin-right: 0.25rem;
}

.cooldown-timer .time-remaining {
    font-weight: 600;
    color: var(--primary-color);
}

/* Already activated notice */
.already-activated {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #166534;
    text-align: center;
}

.already-activated .activated-icon {
    color: #10b981;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.already-activated h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.already-activated p {
    margin: 0;
    font-size: 0.875rem;
}

/* Help links */
.help-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.help-links p {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.help-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-block;
    margin: 0 0.5rem;
}

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

/* Loading state */
.auth-card.sending-activation::after {
    content: 'Aktiváló email küldése...';
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .resend-instructions {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }
    
    .resend-instructions .instruction-icon {
        font-size: 1.25rem;
    }
    
    .email-input-group .form-control {
        font-size: 0.875rem;
    }
    
    .resend-success .success-icon {
        font-size: 2.5rem;
    }
    
    .help-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .help-links a {
        display: block;
        margin: 0.25rem 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .resend-instructions {
        background: #78350f;
        border-color: #92400e;
        color: #fed7aa;
    }
    
    .resend-instructions .instruction-icon {
        color: #fbbf24;
    }
    
    .email-input-group .input-icon {
        color: #9ca3af;
    }
    
    .rate-limit-notice {
        background: #7f1d1d;
        border-color: #991b1b;
        color: #fca5a5;
    }
    
    .rate-limit-notice .limit-icon {
        color: #f87171;
    }
    
    .resend-success h3 {
        color: #6ee7b7;
    }
    
    .resend-success p {
        color: #9ca3af;
    }
    
    .resend-success .email-highlight {
        color: #60a5fa;
    }
    
    .cooldown-timer {
        background: #374151;
        border-color: #4b5563;
        color: #9ca3af;
    }
    
    .cooldown-timer .timer-icon {
        color: #fbbf24;
    }
    
    .cooldown-timer .time-remaining {
        color: #60a5fa;
    }
    
    .already-activated {
        background: #064e3b;
        border-color: #065f46;
        color: #6ee7b7;
    }
    
    .already-activated .activated-icon {
        color: #10b981;
    }
    
    .help-links {
        border-color: #4b5563;
    }
    
    .help-links p {
        color: #6b7280;
    }
}