/* Auth Features Styles */

/* Features Grid Layout */
.auth-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

/* Left Column Features (Dark Background) */
.auth-features-grid .auth-feature-icon.bg-white {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.auth-features-grid .auth-feature-icon.bg-white:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.auth-features-grid .auth-feature-text.text-white {
    color: white !important;
}

/* Feature Item */
.auth-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.auth-feature-item:hover {
    transform: translateY(-2px);
}

/* Feature Icon */
.auth-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(1, 113, 103, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.auth-feature-item:hover .auth-feature-icon {
    background-color: rgba(1, 113, 103, 0.15);
    transform: scale(1.05);
}

.auth-feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #017167;
}

/* Feature Text */
.auth-feature-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 640px) {
    .auth-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .auth-feature-item {
        flex-direction: row;
        text-align: right;
        padding: 1rem;
        background-color: #f9fafb;
        border-radius: 0.5rem;
    }
    
    .auth-feature-icon {
        margin-bottom: 0;
        margin-left: 0.75rem;
        flex-shrink: 0;
    }
    
    .auth-feature-text {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .auth-features-grid {
        gap: 1rem;
    }
    
    .auth-feature-item {
        padding: 0.75rem;
    }
    
    .auth-feature-icon {
        width: 2rem;
        height: 2rem;
        margin-left: 0.5rem;
    }
    
    .auth-feature-icon svg {
        width: 1rem;
        height: 1rem;
    }
    
    .auth-feature-text {
        font-size: 0.8125rem;
    }
}

/* Animation for features */
.auth-feature-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.auth-feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.auth-feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.auth-feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .auth-feature-text {
        color: #d1d5db;
    }
    
    .auth-feature-icon {
        background-color: rgba(1, 113, 103, 0.2);
    }
    
    .auth-feature-item:hover .auth-feature-icon {
        background-color: rgba(1, 113, 103, 0.3);
    }
    
    @media (max-width: 640px) {
        .auth-feature-item {
            background-color: #1f2937;
        }
    }
}

/* RTL Support */
[dir="rtl"] .auth-feature-item {
    text-align: center;
}

@media (max-width: 640px) {
    [dir="rtl"] .auth-feature-item {
        text-align: right;
        flex-direction: row-reverse;
    }
    
    [dir="rtl"] .auth-feature-icon {
        margin-left: 0;
        margin-right: 0.75rem;
    }
}

@media (max-width: 480px) {
    [dir="rtl"] .auth-feature-icon {
        margin-right: 0.5rem;
    }
}

/* Accessibility */
.auth-feature-item:focus {
    outline: 2px solid #017167;
    outline-offset: 2px;
    border-radius: 0.375rem;
}

/* Print styles */
@media print {
    .auth-features-grid {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .auth-feature-icon {
        background-color: #017167;
    }
    
    .auth-feature-icon svg {
        color: white;
    }
    
    .auth-feature-text {
        color: #000;
        font-weight: 600;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .auth-feature-item {
        animation: none;
        opacity: 1;
    }
    
    .auth-feature-item:hover {
        transform: none;
    }
    
    .auth-feature-item:hover .auth-feature-icon {
        transform: none;
    }
}
