﻿/**
 * ====================================================================
 * Lighting Address Dashboard - Modern Login Stylesheet
 * Brand: Lighting Address (عنوان الإضاءة)
 * Theme: Signature Radiant Orange & Glowing Studio Aesthetic
 * ====================================================================
 */

:root {
    --font-main: 'Tajawal', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Signature Orange Palette */
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --orange-glow: rgba(249, 115, 22, 0.35);

    --primary: #f97316;
    --primary-gradient: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    --primary-hover-gradient: linear-gradient(135deg, #f97316 0%, #c2410c 100%);

    --body-bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.94);
    --surface-subtle: #ffffff;
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --input-focus-border: #f97316;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --link-color: #ea580c;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.12), 0 0 0 1px rgba(249, 115, 22, 0.05);
}

[data-theme="dark"] {
    --body-bg: #0b0f19;
    --card-bg: rgba(17, 24, 39, 0.92);
    --surface-subtle: #1e293b;
    --input-bg: #1e293b;
    --input-border: #334155;
    --input-focus-border: #fb923c;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --link-color: #fb923c;

    --glass-bg: rgba(17, 24, 39, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(249, 115, 22, 0.15);
}

* {
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--body-bg);
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ====================================================================
   1. Animated Ambient Light Spheres (Lighting Theme Backgrounds)
   ==================================================================== */
.ambient-glow-1 {
    position: fixed;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, rgba(251, 146, 60, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    top: -120px;
    inset-inline-end: -100px;
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

.ambient-glow-2 {
    position: fixed;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.12) 0%, rgba(253, 186, 116, 0.04) 50%, transparent 70%);
    border-radius: 50%;
    bottom: -80px;
    inset-inline-start: -80px;
    z-index: 0;
    pointer-events: none;
    filter: blur(50px);
}

@keyframes pulseGlow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.15) translate(-20px, 20px);
        opacity: 1;
    }
}

/* ====================================================================
   2. Top Navigation Controls (Language & Theme Switchers)
   ==================================================================== */
.top-nav {
    position: absolute;
    top: 24px;
    inset-inline-start: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 50;
}

.action-pill {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.action-pill:hover {
    background: var(--orange-500);
    color: #ffffff !important;
    border-color: var(--orange-500);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--orange-glow);
}

.action-pill.icon-only {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

/* ====================================================================
   3. Main Workspace & Split-Screen Grid
   ==================================================================== */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
    z-index: 10;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
    width: 100%;
    gap: 48px;
}

/* ====================================================================
   4. Form Section & Heading Elements
   ==================================================================== */
.form-section {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 7px 18px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(234, 88, 12, 0.06) 100%);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 50px;
    color: var(--orange-600);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.08);
}

[data-theme="dark"] .brand-pill {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.18) 0%, rgba(234, 88, 12, 0.1) 100%);
    border-color: rgba(251, 146, 60, 0.3);
    color: #fb923c;
}

.brand-pill img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}

.login-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-title .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    font-size: 0.96rem;
    color: var(--text-muted);
    margin-bottom: 34px;
    line-height: 1.5;
}

/* ====================================================================
   5. Custom Input Boxes (Orange Radiant Glow)
   ==================================================================== */
.custom-input-box {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.custom-input-box:focus-within {
    border-color: var(--input-focus-border);
    background: var(--surface-subtle);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14), 0 4px 12px rgba(249, 115, 22, 0.06);
}

.custom-input-box .form-control {
    background: transparent !important;
    border: none !important;
    padding: 14px 18px;
    font-size: 0.98rem;
    color: var(--text-main) !important;
    box-shadow: none !important;
    height: auto;
    font-weight: 500;
}

.custom-input-box .form-control::placeholder {
    color: #94a3b8;
    font-size: 0.92rem;
    font-weight: 400;
}

.input-icon-end {
    padding: 0 18px;
    color: #94a3b8;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease;
}

.custom-input-box:focus-within .input-icon-end {
    color: var(--orange-500);
}

.password-toggle-trigger {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0 16px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.password-toggle-trigger:hover {
    color: var(--orange-500);
    transform: scale(1.1);
}

/* ====================================================================
   6. Form Meta Row (Checkbox & Forgot Password)
   ==================================================================== */
.form-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    margin-bottom: 26px;
    font-size: 0.9rem;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.custom-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 19px;
    height: 19px;
    border: 2px solid var(--input-border);
    border-radius: 6px;
    background: var(--input-bg);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin-inline-end: 8px;
}

.custom-checkbox input[type="checkbox"]:checked {
    background-color: var(--orange-500);
    border-color: var(--orange-500);
    box-shadow: 0 2px 8px var(--orange-glow);
}

.custom-checkbox input[type="checkbox"]:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-checkbox span {
    color: var(--text-muted);
    font-weight: 600;
}

.forgot-pass-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.forgot-pass-link:hover {
    color: var(--orange-600);
    text-decoration: underline;
}

/* ====================================================================
   7. Submit Action Button
   ==================================================================== */
.btn-creative-submit {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 1.08rem;
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.4), 0 0 0 1px rgba(249, 115, 22, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-creative-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-creative-submit:hover::before {
    left: 100%;
}

.btn-creative-submit:hover {
    background: var(--primary-hover-gradient);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px rgba(249, 115, 22, 0.55), 0 0 0 1px rgba(249, 115, 22, 0.3);
    color: #ffffff;
}

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

.btn-creative-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none !important;
}

/* ====================================================================
   8. Studio Card & Artwork Section
   ==================================================================== */
.illustration-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.art-card {
    width: 100%;
    max-width: 640px;
    position: relative;
    border-radius: 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 28px;
    overflow: visible;
}

.art-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.06));
}

/* Floating Feature Badges */
.floating-feature-badge {
    position: absolute;
    background: var(--surface-subtle);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(249, 115, 22, 0.15);
    padding: 10px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    z-index: 20;
    animation: floatBadge 4s ease-in-out infinite alternate;
}

.floating-feature-badge.badge-1 {
    top: -15px;
    inset-inline-start: 20px;
    animation-delay: 0s;
}

.floating-feature-badge.badge-2 {
    bottom: -15px;
    inset-inline-end: 25px;
    animation-delay: 2s;
}

.badge-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

[data-theme="dark"] .badge-icon-wrap {
    background: #2d1808;
    color: #fb923c;
}

@keyframes floatBadge {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-8px);
    }
}

/* ====================================================================
   9. Alerts & Notification Messages
   ==================================================================== */
.custom-alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.custom-alert.alert-danger {
    background-color: #fff1f2;
    color: #9f1239;
    border: 1px solid #ffe4e6;
}

[data-theme="dark"] .custom-alert.alert-danger {
    background-color: #4c0519;
    color: #fecdd3;
    border-color: #881337;
}

.custom-alert.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fef3c7;
}

[data-theme="dark"] .custom-alert.alert-warning {
    background-color: #451a03;
    color: #fde68a;
    border-color: #78350f;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ====================================================================
   10. Footer Section
   ==================================================================== */
.login-footer {
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10;
}

[data-theme="dark"] .login-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.version-badge {
    font-family: 'Plus Jakarta Sans', monospace;
    font-weight: 700;
    background: rgba(249, 115, 22, 0.1);
    color: var(--orange-600);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
}

[data-theme="dark"] .version-badge {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}

/* ====================================================================
   11. Responsive Media Queries
   ==================================================================== */
@media (max-width: 1024px) {
    .split-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .illustration-section {
        display: none;
    }

    .form-section {
        max-width: 480px;
        padding-top: 40px;
    }
}

@media (max-width: 768px) {
    .login-footer,
    .ambient-glow-1,
    .ambient-glow-2 {
        display: none;
    }

    .brand-pill,
    [data-theme="dark"] .brand-pill {
        background: rgba(249, 115, 22, 0.1);
    }

    .login-title .highlight {
        background: none;
        -webkit-text-fill-color: var(--orange-500);
        color: var(--orange-500);
    }

    .btn-creative-submit,
    .btn-creative-submit:hover {
        background: var(--orange-500);
    }

    .btn-creative-submit::before {
        display: none;
    }
}
