/* Modern CSS for FDIC Grant Portal */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Security Login Page Styles */
.security-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.security-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.security-header {
    margin-bottom: 30px;
}

.security-header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.security-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.security-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.login-btn.success-animation {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.error-message {
    background: #fee;
    color: #c0392b;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #e74c3c;
    display: none;
    align-items: center;
    gap: 10px;
}

.error-message.show {
    display: flex;
}

/* Grant Application Page Styles */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.fdic-hero-image-container {
    text-align: center;
    margin-bottom: 40px;
}

.fdic-hero-image {
    display: inline-block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.hero-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 40px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f4;
}

.form-header h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    color: #7f8c8d;
    font-size: 1.2rem;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: #667eea;
}

.grant-form .form-group {
    margin-bottom: 25px;
}

.grant-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.grant-form .form-group input,
.grant-form .form-group select,
.grant-form .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: inherit;
}

.grant-form .form-group input:focus,
.grant-form .form-group select:focus,
.grant-form .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.grant-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.grant-form .form-group select {
    cursor: pointer;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    min-width: 200px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Trusted Site Section */
.trusted-site-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.trusted-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.trusted-logo i {
    font-size: 2.5rem;
    color: #27ae60;
}

.trusted-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #27ae60;
    letter-spacing: 2px;
}

.trusted-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.security-features {
    color: #7f8c8d;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.security-features i {
    color: #667eea;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
}

.footer-content p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .security-card,
    .form-container,
    .trusted-site-section {
        margin: 20px;
        padding: 30px;
    }
    
    .security-header h1 {
        font-size: 1.8rem;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
    
    .trusted-text {
        font-size: 1.4rem;
    }
    
    .security-features {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .security-card,
    .form-container,
    .trusted-site-section {
        margin: 10px;
        padding: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
    }
}

/* Loading Animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animation */
.fa-check-circle {
    color: #27ae60;
}

/* Error Animation */
.fa-exclamation-triangle {
    color: #e74c3c;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 3px;
    }
    
    .login-btn,
    .submit-btn {
        border: 2px solid #000;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .security-container,
    .main-content {
        box-shadow: none;
    }
    
    .login-btn,
    .submit-btn {
        background: #333;
        color: white;
    }
}
