/* AxioSuite - Auth Pages Stylesheet */

:root {
    --axio-primary: #0d6efd;
    --axio-primary-dark: #0a58ca;
    --axio-primary-light: #e7f1ff;
    --axio-gradient: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    --axio-body-bg: #f0f4f8;
    --axio-card-bg: #ffffff;
    --axio-text: #212529;
    --axio-text-muted: #6c757d;
    --axio-border: #dee2e6;
    --axio-radius: 12px;
    --axio-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --axio-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-body {
    font-family: var(--axio-font);
    background: var(--axio-body-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 650px;
    background: var(--axio-card-bg);
    border-radius: var(--axio-radius);
    box-shadow: var(--axio-shadow);
    overflow: hidden;
}

/* Left Brand Panel */
.auth-brand-panel {
    flex: 0 0 45%;
    background: var(--axio-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: brandPulse 8s ease-in-out infinite;
}

@keyframes brandPulse {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.auth-logo {
    max-width: 220px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.brand-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.brand-description {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 32px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    opacity: 0.95;
}

.brand-feature-item i {
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
}

/* Right Form Panel */
.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.auth-form-wrapper {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.auth-logo-mobile {
    max-width: 180px;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--axio-text);
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--axio-text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.auth-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--axio-primary-light);
    color: var(--axio-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Form Styles */
.auth-form .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--axio-text);
    margin-bottom: 6px;
}

.auth-form .form-control {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-color: var(--axio-border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.auth-form .form-control:focus {
    border-color: var(--axio-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.auth-form .input-group-text {
    background: #f8f9fa;
    border-color: var(--axio-border);
    border-radius: 8px 0 0 8px;
    color: var(--axio-text-muted);
}

.auth-form .input-group .form-control {
    border-radius: 0 8px 8px 0;
}

.auth-submit-btn {
    padding: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-link {
    color: var(--axio-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--axio-primary-dark);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--axio-text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--axio-border);
}

.auth-divider span {
    padding: 0 16px;
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
    overflow: hidden;
}

.password-strength .strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 24px;
}

.auth-footer p {
    color: var(--axio-text-muted);
    font-size: 0.8rem;
}

/* Alerts */
.auth-form-wrapper .alert {
    border-radius: 8px;
    font-size: 0.875rem;
    border: none;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .auth-container {
        max-width: 480px;
    }
    .auth-form-panel {
        padding: 32px 24px;
    }
}

@media (max-width: 575.98px) {
    .auth-wrapper {
        padding: 0;
    }
    .auth-container {
        border-radius: 0;
        min-height: 100vh;
    }
    .auth-form-panel {
        padding: 24px 20px;
    }
    .auth-title {
        font-size: 1.5rem;
    }
}

/* Dark mode support */
[data-bs-theme="dark"] .auth-body {
    background: #1a1d21;
}

[data-bs-theme="dark"] .auth-container {
    background: #212529;
}

[data-bs-theme="dark"] .auth-title {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .auth-form .form-control {
    background: #2b3035;
    border-color: #495057;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .auth-form .input-group-text {
    background: #343a40;
    border-color: #495057;
    color: #adb5bd;
}
