/* Business Authentication CSS - Modern Design System */

:root {
    /* Colors */
    --primary-color: #003c84;
    --secondary-color: #2E8BC0;
    --accent-color: #0078D7;
    --dark-bg: #001B3D;
    --light-bg: #F8F9FA;
    --text-color: #333;
    --text-muted: #6c757d;
    --text-light: #f8f9fa;
    --border-color: #ced4da;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-text: #fff;
    
    /* Typography */
    --font-family: 'Inter', sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Transitions */
    --transition-base: all 0.2s ease-in-out;
    --transition: all 0.3s ease;
    
    /* Box Shadow */
    --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Base styles */
body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    font-size: var(--font-size-base);
    line-height: 1.5;
}

/* Container layout */
.auth-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.auth-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    margin: 0 auto;
    z-index: 10;
    overflow: visible;
}

.auth-card.wide {
    max-width: 600px;
}

/* Header elements */
.logo-container {
    text-align: center;
}

.logo {
    height: 40px;
    max-width: 100%;
}

.wallet-label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    text-align: center;
}

.wallet-label:after {
    content: '';
    display: block;
    margin: 10px auto 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.auth-heading {
    color: var(--text-light);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.auth-header {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-logo {
    height: 40px;
}

.auth-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.auth-card-content {
    width: 100%;
    clear: both;
}

.auth-card-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary-color);
    text-align: center;
}

.auth-card-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 30px;
    text-align: center;
}

.close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    float: right;
    margin-bottom: 10px;
}

.close-btn:hover {
    color: var(--text-color);
}

.form-agreement {
    margin: 20px 0;
    font-size: 14px;
    color: #6c757d;
    text-align: center;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-accent:hover {
    color: #0056b3;
}

.auth-footer-links {
    text-align: center;
    margin-top: 20px;
    width: 100%;
    z-index: 10;
    color: var(--text-light);
    padding: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.auth-footer a, .forgot-password a, .resend-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
}

.auth-footer a:hover, .forgot-password a:hover, .resend-link a:hover {
    text-decoration: underline;
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-option, .register-link, .login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-lg);
    color: white;
}

.login-option span, .register-link span, .login-link span {
    margin-right: var(--spacing-sm);
    color: white;
}

.login-option a, .register-link a, .login-link a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-base);
}

.login-option a:hover, .register-link a:hover, .login-link a:hover {
    text-decoration: underline;
}

.login-option a i, .register-link a i, .login-link a i {
    margin-right: var(--spacing-xs);
}

/* Multi-step form */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: var(--transition);
}

.step-label {
    font-size: var(--font-size-sm);
    color: #6c757d;
    transition: var(--transition);
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #e9ecef;
    margin: 0 10px;
    margin-bottom: 30px;
}

.step-item.active .step-circle {
    background-color: var(--primary-color);
    color: white;
}

.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.form-step {
    transition: var(--transition);
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-xl);
}

/* Form layout */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.form-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: var(--spacing-lg);
}

/* Verification code */
.verification-code {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.verification-code input {
    width: 50px;
    height: 60px;
    margin: 0 5px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
}

.verification-code input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 120, 215, 0.25);
    outline: 0;
}

.resend-link {
    text-align: center;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
}

.resend-link a.disabled {
    color: var(--text-muted);
    pointer-events: none;
    cursor: default;
}

/* Password strength */
.password-strength {
    margin-top: var(--spacing-sm);
}

.password-strength-meter {
    height: 5px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-top: var(--spacing-xs);
    overflow: hidden;
}

.password-strength-meter-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
    width: 0;
}

.strength-weak .password-strength-meter-fill {
    width: 25%;
    background-color: var(--danger-color);
}

.strength-fair .password-strength-meter-fill {
    width: 50%;
    background-color: var(--warning-color);
}

.strength-good .password-strength-meter-fill {
    width: 75%;
    background-color: var(--info-color);
}

.strength-strong .password-strength-meter-fill {
    width: 100%;
    background-color: var(--success-color);
}

/* Alerts */
.alert {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-icon {
    margin-right: var(--spacing-sm);
}

/* Checkboxes */
.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
    color-adjust: exact;
    transition: var(--transition);
    float: left;
    margin-left: -1.5em;
}

.form-check-input[type="checkbox"] {
    border-radius: 0.25em;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-check-input:focus {
    border-color: var(--secondary-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(46, 139, 192, 0.25);
}

.form-check-label {
    color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .step-buttons button {
        padding: 10px 15px;
    }
    
    .step-buttons {
        flex-direction: column;
    }
    
    .step-text {
        display: none;
    }
    
    .step {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .verification-code input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
    
    .auth-heading {
        font-size: 28px;
    }
    
    .auth-title {
        font-size: 20px;
    }
}

/* Spinner for loading states */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    max-width: 350px;
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toast-body {
    padding: 15px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Additional styles for security notice */
.security-notice {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid var(--warning-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

.security-notice-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.security-notice-title i {
    margin-right: 8px;
}

.security-notice-text {
    color: #856404;
    font-size: var(--font-size-sm);
    margin: 0;
}

/* New styles for the auth-wrapper */
.auth-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.auth-title {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: var(--font-size-base);
    font-weight: 400;
}

.auth-card-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--font-size-md);
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 139, 192, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-text {
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* Password toggle styling */
.input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.input-group .form-control {
    width: 100%;
    border-radius: var(--border-radius) !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    z-index: 5;
}

.password-toggle:hover {
    color: var(--accent-color);
}

/* Remove the toggle-password class styles that were positioning it as a separate button */
.toggle-password {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 12px 24px;
    font-size: var(--font-size-md);
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #001f42;
    border-color: #001f42;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn:disabled {
    opacity: 0.65;
    pointer-events: none;
    transform: none;
}

/* SweetAlert2 Custom Styling */
.swal2-popup {
border-radius: 12px !important;
padding: 2rem 1.5rem !important;
text-align: center !important;
width: 320px !important;
font-family: var(--font-family) !important;
}

.swal2-icon {
margin: 0.5rem auto 1rem auto !important;
width: 5em !important;
height: 5em !important;
border-width: 0.2em !important;
}

.swal2-icon-content {
font-size: 3.75em !important;
}

.swal2-icon .swal2-x-mark-line-left,
.swal2-icon .swal2-x-mark-line-right {
width: 2.5em !important;
height: 0.2em !important;
}

.swal2-title {
font-size: 1.25rem !important;
font-weight: 600 !important;
color: #1a1a1a !important;
margin: 0.5rem 0 !important;
padding: 0 !important;
text-align: center !important;
line-height: 1.3 !important;
}

.swal2-html-container {
font-size: 0.9rem !important;
color: #6c757d !important;
margin: 0.5rem 0 !important;
padding: 0 !important;
text-align: center !important;
line-height: 1.4 !important;
}

/* Mobile Responsiveness for SweetAlert */
@media (max-width: 576px) {
.swal2-popup {
    width: 280px !important;
    padding: 1.5rem 1.25rem !important;
    margin: 0.5rem !important;
}

.swal2-icon {
    width: 4.5em !important;
    height: 4.5em !important;
    margin: 0.5rem auto 0.75rem auto !important;
}

.swal2-icon-content {
    font-size: 3.25em !important;
}
} 