/**
 * Zal Ultra - Modern Auth Pages CSS (v1)
 * 
 * This stylesheet provides a modern, clean design for authentication pages
 * including login, register, forgot password, and reset password.
 * 
 * Author: Onezeroart LLC
 * Version: 1.0.0
 */

:root {
    --auth-primary: #1a1a2e;
    --auth-secondary: #f8f9fa;
    --auth-accent: #0f0f23;
    --auth-text: #1a1a2e;
    --auth-text-muted: #6c757d;
    --auth-border: #e9ecef;
    --auth-input-bg: #f8f9fa;
    --auth-success: #28a745;
    --auth-danger: #dc3545;
    --auth-warning: #ffc107;
    --auth-warning-bg: #fff8e1;
}

/* Base Styles */
* {
    font-family: 'Inter', sans-serif;
}

body.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--auth-secondary);
}

/* Container Layout */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Image Section */
.auth-image-section {
    flex: 1;
    background-color: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-image-section.narrow {
    flex: 0 0 40%;
}

.auth-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Form Section */
.auth-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: var(--auth-secondary);
    position: relative;
}

.auth-form-section.scrollable {
    overflow-y: auto;
}

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

.auth-form-wrapper.wide {
    max-width: 700px;
    padding: 20px 0;
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--auth-text);
    margin: 0;
    text-transform: uppercase;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--auth-text);
    margin: 0 0 12px 0;
}

.auth-header p {
    font-size: 14px;
    color: var(--auth-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--auth-border);
    padding-bottom: 0;
}

.auth-tabs.centered {
    justify-content: center;
}

.auth-tab {
    font-size: 15px;
    font-weight: 500;
    color: var(--auth-text-muted);
    padding: 12px 0;
    cursor: pointer;
    border: none;
    background: none;
    position: relative;
    transition: color 0.2s ease;
    text-decoration: none;
}

.auth-tab:hover {
    color: var(--auth-text);
}

.auth-tab.active {
    color: var(--auth-text);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--auth-text);
}

/* Icon */
.auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--auth-input-bg);
    border-radius: 50%;
}

.auth-icon i {
    font-size: 28px;
    color: var(--auth-text);
}

/* Notice */
.auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: var(--auth-warning-bg);
    border-left: 4px solid var(--auth-warning);
    margin-bottom: 24px;
}

.auth-notice i {
    color: var(--auth-warning);
    font-size: 18px;
    margin-top: 2px;
}

.auth-notice-content {
    font-size: 13px;
    color: var(--auth-text);
    line-height: 1.5;
}

/* Form Elements */
.auth-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.auth-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.auth-form-row .auth-form-group {
    margin-bottom: 0;
}

.auth-form-group.full-width {
    flex: 0 0 100%;
}

.auth-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-text);
    margin-bottom: 8px;
}

.auth-label .required {
    color: var(--auth-danger);
}

.auth-input {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    border: none;
    border-radius: 0;
    background-color: var(--auth-input-bg);
    color: var(--auth-text);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: var(--auth-text-muted);
}

.auth-input:focus {
    outline: none;
    background-color: #f0f1f3;
}

.auth-input.is-valid {
    border: 1px solid var(--auth-success);
}

.auth-input.is-invalid {
    border: 1px solid var(--auth-danger);
}

.auth-select {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    border: none;
    border-radius: 0;
    background-color: var(--auth-input-bg);
    color: var(--auth-text);
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

.auth-select:focus {
    outline: none;
    background-color: #f0f1f3;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--auth-text-muted);
    padding: 0;
}

.password-toggle:hover {
    color: var(--auth-text);
}

/* Validation Feedback */
.invalid-feedback {
    display: none;
    font-size: 12px;
    color: var(--auth-danger);
    margin-top: 4px;
}

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    background-color: var(--auth-primary);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.auth-btn:hover {
    background-color: var(--auth-accent);
}

.auth-btn:disabled {
    background-color: var(--auth-text-muted);
    cursor: not-allowed;
}

.auth-btn-secondary {
    background-color: transparent;
    color: var(--auth-text);
    border: 1px solid var(--auth-border);
}

.auth-btn-secondary:hover {
    background-color: var(--auth-input-bg);
}

.auth-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.auth-actions .auth-btn {
    flex: 1;
    margin-top: 0;
}

/* Links */
.auth-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--auth-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--auth-text);
}

/* Section Title */
.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text);
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--auth-border);
}

.section-title:first-of-type {
    margin-top: 0;
}

/* Footer */
.auth-footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
}

.auth-footer.static {
    position: static;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-border);
}

.auth-footer a {
    font-size: 13px;
    color: var(--auth-text-muted);
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--auth-text);
}

/* Notice Ticker */
.notice-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.notice-wrapper .acme-news-ticker {
    margin: 0;
    border-radius: 0;
}

.notice-wrapper .acme-news-ticker-label {
    background: var(--auth-primary);
    color: #fff;
    padding: 12px 20px;
    font-size: 13px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .auth-image-section {
        display: none;
    }

    .auth-form-section {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .auth-form-row {
        flex-direction: column;
        gap: 0;
    }

    .auth-form-row .auth-form-group {
        margin-bottom: 16px;
    }

    .auth-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .auth-logo h1 {
        font-size: 22px;
        letter-spacing: 5px;
    }

    .auth-form-wrapper,
    .auth-form-wrapper.wide {
        max-width: 100%;
    }
}

/* Dark Mode Support */
[data-bs-theme="dark"] {
    --auth-primary: #ffffff;
    --auth-secondary: #1a1a2e;
    --auth-accent: #e0e0e0;
    --auth-text: #ffffff;
    --auth-text-muted: #a0a0a0;
    --auth-border: #2d2d44;
    --auth-input-bg: #252540;
    --auth-warning-bg: #3d3d00;
}

[data-bs-theme="dark"] .auth-image-section {
    background-color: #252540;
}

[data-bs-theme="dark"] .auth-btn {
    background-color: #ffffff;
    color: #1a1a2e;
}

[data-bs-theme="dark"] .auth-btn:hover {
    background-color: #e0e0e0;
}

[data-bs-theme="dark"] .auth-btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #2d2d44;
}

[data-bs-theme="dark"] .auth-btn-secondary:hover {
    background-color: #252540;
}

[data-bs-theme="dark"] .notice-wrapper {
    background: #252540;
}

[data-bs-theme="dark"] .notice-wrapper .acme-news-ticker-label {
    background: #1a1a2e;
}

[data-bs-theme="dark"] .auth-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
