/**
 * Registration Page Specific Styles
 * Enhanced registration form with password strength indicator
 */

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

/* Registration specific enhancements */
.auth-card {
    max-width: 450px; /* Slightly wider for registration */
}

/* Registration form specifics */
#registerForm .form-group {
    position: relative;
}

/* Email domain suggestions */
.email-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.email-suggestion {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.email-suggestion:hover,
.email-suggestion.active {
    background-color: #f9fafb;
}

.email-suggestion:last-child {
    border-bottom: none;
}

/* Terms and privacy links */
.terms-text {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    text-align: center;
    margin-top: 1rem;
}

.terms-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Registration success state */
.registration-success {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

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

.registration-success h3 {
    color: #166534;
    margin-bottom: 0.5rem;
}

.registration-success p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading overlay for registration */
.auth-card.registering::after {
    content: 'Fiók létrehozása...';
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Form validation enhancements */
.form-control.checking {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15'%3e%3c/path%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Email availability indicator */
.email-availability {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.email-availability.available {
    color: #10b981;
}

.email-availability.taken {
    color: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .terms-text {
        font-size: 0.6875rem;
    }
    
    .registration-success .success-icon {
        font-size: 2.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .email-suggestions {
        background: #374151;
        border-color: #4b5563;
    }
    
    .email-suggestion {
        border-color: #4b5563;
        color: #d1d5db;
    }
    
    .email-suggestion:hover,
    .email-suggestion.active {
        background-color: #4b5563;
    }
    
    .terms-text {
        color: #9ca3af;
    }
    
    .registration-success h3 {
        color: #6ee7b7;
    }
    
    .registration-success p {
        color: #9ca3af;
    }
}