/**
 * GOOGLE AUTHENTICATION STYLES
 * Styling for Google Sign-In interface and error modals
 */

/* Role Selection Cards */
.role-selection-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    max-width: 900px;
}

.role-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.role-card .role-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.role-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.role-card .role-description {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.role-card .domain-requirement {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.role-card .google-signin-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Google Sign-In Button Customization */
.google-signin-container iframe {
    border-radius: 8px !important;
}

/* Domain Error Modal */
.domain-error-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.domain-error-content {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.domain-error-content .error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.domain-error-content h3 {
    color: var(--danger-color);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.domain-error-content .error-message {
    color: var(--gray-700);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.domain-error-content .email-info {
    background: var(--gray-50);
    border-left: 4px solid var(--danger-color);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: left;
}

.domain-error-content .email-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.domain-error-content .email-info strong {
    color: var(--dark-color);
    font-weight: 600;
}

.domain-error-content .error-instructions {
    background: #eff6ff;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: left;
}

.domain-error-content .error-instructions h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.domain-error-content .error-instructions p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.domain-error-content .error-instructions .example {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.domain-error-content .btn {
    margin-top: 1.5rem;
    min-width: 150px;
}

/* Loading State */
.google-signin-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--gray-600);
}

.google-signin-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Login Page Updates */
.login-container {
    max-width: 1000px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
}

.login-header h2 {
    color: var(--dark-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--gray-500);
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-300);
}

.login-divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .role-selection-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .role-card {
        padding: 1.5rem;
    }

    .role-card h3 {
        font-size: 1.25rem;
    }

    .domain-error-content {
        padding: 2rem;
        width: 95%;
    }

    .domain-error-content h3 {
        font-size: 1.5rem;
    }

    .domain-error-content .error-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .role-card .role-icon {
        font-size: 2.5rem;
    }

    .domain-error-content {
        padding: 1.5rem;
    }

    .domain-error-content .error-instructions,
    .domain-error-content .email-info {
        padding: 0.75rem;
    }
}



/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0fdf4;
    color: #166534;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 2rem;
}

.security-badge::before {
    content: '🔒';
    font-size: 1.2rem;
}

/* Info Box */
.google-auth-info {
    background: #eff6ff;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.google-auth-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.google-auth-info ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.google-auth-info li {
    color: var(--gray-700);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}