/* Auth Login Split View */

:root {
    --auth-primary: #009EF7;
    --auth-primary-hover: #0087d1;
    --auth-bg: #f5f8fa;
    --auth-card-bg: #ffffff;
    --auth-text: #181C32;
    --auth-muted: #7e8299;
    --auth-border: #e1e3ea;
    --auth-input-bg: #f9fafb;
    --auth-label: #3f4254;
}

[data-bs-theme="dark"] {
    --auth-bg: #13131f;
    --auth-card-bg: #1e1e2d;
    --auth-text: #e9eaf0;
    --auth-muted: #6d6e85;
    --auth-border: #2d2d44;
    --auth-input-bg: #1b1b29;
    --auth-label: #b5b5c3;
}

*, *::before, *::after { box-sizing: border-box; }

body.auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--auth-bg);
    color: var(--auth-text);
}

/* Split Root */
.auth-split-root {
    display: flex;
    min-height: 100vh;
}

/* LEFT PANEL — Form */
.auth-panel-form {
    position: relative;
    flex: 0 0 48%;
    background: var(--auth-card-bg);
    display: flex;
    flex-direction: column;
}

.auth-brand {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.auth-brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: -0.01em;
}

.auth-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

.auth-form-subtitle {
    font-size: 0.875rem;
    color: var(--auth-muted);
    margin: 0;
}

.auth-input-group {
    margin-bottom: 1.15rem;
}

.auth-label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    color: var(--auth-label);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-input {
    width: 100%;
    padding: 0.78rem 1rem;
    background: var(--auth-input-bg);
    border: 1.5px solid var(--auth-border);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--auth-text);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input::placeholder { color: #b5b5c3; }

.auth-input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(0,158,247,0.12);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-input {
    padding-right: 2.8rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--auth-muted);
    transition: color 0.2s;
}

.auth-password-toggle:hover { color: var(--auth-primary); }

.auth-password-icon {
    width: 18px;
    height: 18px;
}

.auth-btn {
    width: 100%;
    padding: 0.82rem;
    margin-top: 0.65rem;
    background: var(--auth-primary);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.925rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.auth-btn:hover {
    background: var(--auth-primary-hover);
    box-shadow: 0 6px 20px rgba(0,158,247,0.28);
}

.auth-btn:active { transform: translateY(1px); }

/* RIGHT PANEL — Image */
.auth-panel-image {
    flex: 0 0 52%;
    position: relative;
    overflow: hidden;
}

.auth-image-bg {
    width: 100%;
    height: 100%;
    background-image: url('../media/auth/bg6.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark Mode */
[data-bs-theme="dark"] .theme-light-show { display: none !important; }
[data-bs-theme="light"] .theme-dark-show { display: none !important; }

[data-bs-theme="dark"] .auth-panel-form {
    border-right: 1px solid var(--auth-border);
}

[data-bs-theme="dark"] .auth-brand-name,
[data-bs-theme="dark"] .auth-form-title {
    color: #e9eaf0;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-panel-form { flex: 0 0 44%; }
    .auth-panel-image { flex: 0 0 56%; }
}

@media (max-width: 768px) {
    .auth-panel-image { display: none; }
    .auth-panel-form { flex: 1; }
    .auth-form-container { max-width: 100%; }
}
