/* ========================================
   Forms & Authentication Styles
   Face The Risk - AI Risk Analysis Platform
   ======================================== */

/* ========================================
   Form Variables
   ======================================== */
:root {
   /* --form-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --form-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --form-success: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    --form-danger: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --form-warning: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);*/
    --form-primary: linear-gradient(135deg, #6382f1 0%, #4f6be0 100%);
    --form-secondary: linear-gradient(135deg, #468de5 0%, #2f6fbb 100%);
    --form-success: linear-gradient(135deg, #10b981 0%, #0e9f6e 100%);
    --form-danger: linear-gradient(135deg, #ff4500 0%, #cc3700 100%);
    --form-warning: linear-gradient(135deg, #ff8400 0%, #cc6a00 100%);
    
    --form-card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --form-input-radius: 12px;
    --form-button-height: 50px;
}

/* ========================================
   Login & Authentication Pages
   ======================================== */
body.login-body {
    background: var(--form-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    /*width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;*/
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0rem 3rem 2rem;
    box-shadow: var(--form-card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.login-header {
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
    background:transparent;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--form-primary);
    border-radius: 2px;
}

.brand-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 0rem;
    animation: pulse 2s infinite;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.login-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Form Controls */
.login-card .form-control {
    border-radius: var(--form-input-radius);
    border: 2px solid #e9ecef;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.login-card .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
    background: white;
}

.login-card .input-group-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    border-radius: var(--form-input-radius) 0 0 var(--form-input-radius);
    border-right: none;
    color: #667eea;
}

.login-card .btn-login {
    background: var(--form-primary);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--form-input-radius);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    height: var(--form-button-height);
    width: 100%;
    font-size: 1rem;
    color: white;
}

.login-card .btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.login-card .btn-login:active {
    transform: translateY(-1px);
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #5a6fd8;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Security Badge */
.security-badge {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer Text */
.footer-text {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* ========================================
   Multi-step Forms
   ======================================== */
.form-wizard {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.form-wizard .card-header {
    background: var(--form-primary);
    color: white;
    border: none;
    padding: 2rem;
    text-align: center;
}

.form-wizard .card-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
}

.form-wizard .card-header p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
}

/* Progress Bar */
.form-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.form-progress-bar {
    background: white;
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.form-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Step Navigation */
.step-navigation {
    padding: 2rem;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-navigation .btn {
    min-width: 120px;
    height: 45px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-navigation .btn-primary {
    background: var(--form-primary);
    border: none;
}

.step-navigation .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.step-navigation .btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
}

/* Hidden step button */
.step-btn-hidden {
    display: none !important;
}

/* ========================================
   Form Loading States
   ======================================== */
.form-loading {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 2rem;
    color: #667eea;
}

.form-loading .loading-progress {
    width: 300px;
    height: 8px;
    margin: 0 auto;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.form-loading .loading-progress-bar {
    height: 100%;
    background: var(--form-primary);
    border-radius: 4px;
    animation: progressMove 2s ease-in-out infinite;
}

.form-loading h4 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.form-loading p {
    color: #666;
    margin: 0;
}

/* ========================================
   Form Validation
   ======================================== */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
}

/* Show validation messages only when field is invalid */
.is-invalid .invalid-feedback {
    display: block;
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

/* ========================================
   Profile & Settings Forms
   ======================================== */
.profile-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.profile-card .card-header {
    background: var(--form-primary);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    font-weight: 600;
}

.profile-card .card-body {
    padding: 2rem;
}

.profile-form .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.profile-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.profile-form .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* ========================================
   Company Forms
   ======================================== */
.company-form {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.company-form .form-section {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.company-form .form-section:last-child {
    border-bottom: none;
}

.company-form .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

/* Custom limit container */
.custom-limit-container {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.custom-limit-container.show {
    display: block;
}

/* ========================================
   Inline Form Elements
   ======================================== */
.inline-form {
    display: inline-block;
}

.inline-form .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Form confirmation */
.form-confirm {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.form-confirm h6 {
    color: #dc3545;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-confirm p {
    color: #721c24;
    margin: 0;
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .login-container {
        padding: 0rem;
    }
    
    .login-card {
        padding: 0rem 1.5rem;
    }
    
    .brand-icon {
        font-size: 2.5rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .form-wizard .card-header {
        padding: 1.5rem;
    }
    
    .step-navigation {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-navigation .btn {
        width: 100%;
    }
    
    .company-form .form-section {
        padding: 1.5rem;
    }
}
@media (max-width: 991px) and (min-width: 768px) {
.login-card .form-control {
    padding: 0rem 1rem;
}

}
@media (max-width: 576px) {
    .login-container {
        padding: 0.5rem;
    }
    
    .login-card {
        padding: 0.2rem 1rem;
        border-radius: 15px;
    }
    
    .form-loading .loading-progress {
        width: 250px;
    }
    
    .profile-card .card-body {
        padding: 1.5rem;
    }
}

/* ========================================
   Animation Keyframes
   ======================================== */
@keyframes progressMove {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-auto {
    margin-top: auto;
}

.w-100 {
    width: 100%;
}

/* Authentication Page Specific Styles */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-page.auth-reset {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.auth-page.auth-forgot {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Authentication Card Styles */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.auth-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    text-align: center;
}

.reset-header, .forgot-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 2rem;
    text-align: center;
}

/* Enhanced form controls for auth pages */
.auth-page .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.auth-page .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.auth-reset .form-control:focus,
.auth-forgot .form-control:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

/* Special button styles for auth pages */
.btn-verify {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-reset, .btn-forgot {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-reset:hover, .btn-forgot:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Code input for 2FA */
.code-input {
    font-size: 1.5rem !important;
    font-weight: 600;
    letter-spacing: 8px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

/* Security note styling */
.security-note {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Password requirements styling */
.password-requirements {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Back link styling */
.back-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #3498db;
}

.auth-reset .back-link,
.auth-forgot .back-link {
    color: #e74c3c;
}

.auth-reset .back-link:hover,
.auth-forgot .back-link:hover {
    color: #c0392b;
    text-decoration: underline;
}
@media (max-width: 479px) and (min-width: 375px) {
    .login-card .form-control {
        padding: 0rem 1rem;
    }
}
