/* =========================================================
   Five Line Workspace
   Login Page Styles
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #030712;
    --background-secondary: #07101f;
    --card: rgba(8, 17, 33, 0.9);
    --card-border: rgba(255, 255, 255, 0.09);

    --gold: #d6b36a;
    --gold-light: #f1d597;
    --gold-dark: #8d6c37;

    --text: #f8fafc;
    --text-secondary: #a8b3c7;
    --text-muted: #68758a;

    --input-background: rgba(255, 255, 255, 0.055);
    --input-border: rgba(255, 255, 255, 0.09);

    --danger: #ff6b6b;
    --success: #4ade80;

    --shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Tahoma, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(214, 179, 106, 0.15),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(36, 93, 155, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--background),
            var(--background-secondary)
        );
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 42px 42px;
}

/* =========================================================
   Main Layout
========================================================= */

.workspace-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(420px, 0.85fr);
}

/* =========================================================
   Brand Section
========================================================= */

.workspace-brand {
    position: relative;
    min-width: 0;
    padding: 55px 7%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.workspace-brand::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 45%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(
            circle,
            rgba(214, 179, 106, 0.08),
            transparent 70%
        );
    filter: blur(10px);
    pointer-events: none;
}

.workspace-brand::after {
    content: "";
    position: absolute;
    left: -210px;
    bottom: -250px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1px solid rgba(214, 179, 106, 0.16);
    box-shadow:
        0 0 0 60px rgba(214, 179, 106, 0.025),
        0 0 0 120px rgba(214, 179, 106, 0.018);
    pointer-events: none;
}

.brand-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-header img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.brand-header-text strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.brand-header-text span {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

.brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    padding: 55px 0;
}

.brand-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 9px 14px;
    border: 1px solid rgba(214, 179, 106, 0.28);
    border-radius: 999px;
    color: var(--gold-light);
    background: rgba(214, 179, 106, 0.075);
    font-size: 13px;
}

.brand-label::before {
    content: "";
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px var(--gold);
}

.brand-content h1 {
    margin-bottom: 24px;
    font-size: clamp(42px, 5vw, 76px);
    line-height: 1.13;
    letter-spacing: -2px;
}

.brand-content h1 span {
    display: block;
    color: var(--gold-light);
}

.brand-content > p {
    max-width: 650px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 2;
}

.brand-features {
    max-width: 650px;
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.brand-feature {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    color: #dbe4f0;
    background: rgba(255, 255, 255, 0.035);
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.brand-feature:hover {
    transform: translateY(-2px);
    border-color: rgba(214, 179, 106, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.brand-feature-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--gold-light);
    background: rgba(214, 179, 106, 0.1);
    font-weight: bold;
}

.brand-footer {
    position: relative;
    z-index: 2;
    color: #718096;
    font-size: 12px;
    direction: ltr;
    text-align: left;
}

/* =========================================================
   Login Area
========================================================= */

.workspace-login-area {
    min-height: 100vh;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(2, 7, 18, 0.42);
    backdrop-filter: blur(18px);
}

.login-card {
    width: 100%;
    max-width: 470px;
    padding: 42px;
    border: 1px solid var(--card-border);
    border-radius: 26px;
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.login-top {
    margin-bottom: 30px;
}

.login-top small {
    display: block;
    margin-bottom: 12px;
    color: var(--gold-light);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    direction: ltr;
    text-align: right;
}

.login-top h2 {
    margin-bottom: 12px;
    font-size: 30px;
    line-height: 1.3;
}

.login-top p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================================
   Messages
========================================================= */

.message {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.7;
}

.message-error {
    color: #ffd4d4;
    border: 1px solid rgba(255, 107, 107, 0.25);
    background: rgba(255, 107, 107, 0.08);
}

.message-success {
    color: #c7f9d7;
    border: 1px solid rgba(74, 222, 128, 0.24);
    background: rgba(74, 222, 128, 0.08);
}

/* =========================================================
   Form
========================================================= */

.form-group {
    margin-bottom: 19px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: #dce5f1;
    font-size: 13px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    min-height: 54px;
    padding: 0 48px 0 48px;
    border: 1px solid var(--input-border);
    border-radius: 13px;
    outline: none;
    color: var(--text);
    background: var(--input-background);
    font-family: inherit;
    font-size: 14px;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.input-wrapper input:focus {
    border-color: rgba(214, 179, 106, 0.7);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 0 0 4px rgba(214, 179, 106, 0.08);
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    color: #7d8aa0;
    transform: translateY(-50%);
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #97a3b7;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.password-toggle:hover {
    color: var(--gold-light);
    background: rgba(255, 255, 255, 0.05);
}

.password-toggle:focus-visible,
.login-button:focus-visible,
.forgot-link:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

/* =========================================================
   Login Options
========================================================= */

.login-options {
    margin: 5px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.remember-field {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.remember-field input {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
    cursor: pointer;
}

.forgot-link {
    color: var(--gold-light);
    font-size: 13px;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* =========================================================
   Login Button
========================================================= */

.login-button {
    width: 100%;
    min-height: 55px;
    border: 0;
    border-radius: 14px;
    color: #17120a;
    background:
        linear-gradient(
            135deg,
            var(--gold-light),
            var(--gold)
        );
    box-shadow: 0 16px 30px rgba(214, 179, 106, 0.18);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(214, 179, 106, 0.25);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

/* =========================================================
   Security Note
========================================================= */

.security-note {
    margin-top: 25px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 12px;
    color: #8390a5;
    background: rgba(255, 255, 255, 0.035);
    font-size: 12px;
    line-height: 1.7;
}

.security-note span:first-child {
    flex-shrink: 0;
    color: var(--gold-light);
    font-size: 17px;
}

.login-footer {
    margin-top: 24px;
    color: #596579;
    font-size: 11px;
    text-align: center;
    direction: ltr;
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1050px) {

    .workspace-page {
        grid-template-columns: 1fr;
    }

    .workspace-brand {
        min-height: auto;
        padding: 35px 6%;
    }

    .brand-content {
        max-width: 850px;
        padding: 65px 0 25px;
    }

    .brand-content h1 {
        font-size: 48px;
    }

    .brand-footer {
        display: none;
    }

    .workspace-login-area {
        min-height: auto;
        padding: 60px 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        border-right: 0;
    }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 600px) {

    .workspace-brand {
        padding: 24px 20px 30px;
    }

    .brand-header {
        gap: 12px;
    }

    .brand-header img {
        width: 58px;
        height: 58px;
    }

    .brand-header-text strong {
        font-size: 17px;
    }

    .brand-header-text span {
        font-size: 11px;
    }

    .brand-content {
        padding: 50px 0 10px;
    }

    .brand-label {
        margin-bottom: 18px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .brand-content h1 {
        margin-bottom: 18px;
        font-size: 36px;
        letter-spacing: -1px;
    }

    .brand-content > p {
        font-size: 14px;
        line-height: 1.9;
    }

    .brand-features {
        margin-top: 28px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .brand-feature {
        padding: 13px 14px;
    }

    .workspace-login-area {
        padding: 35px 15px;
    }

    .login-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .login-top {
        margin-bottom: 26px;
    }

    .login-top h2 {
        font-size: 26px;
    }

    .input-wrapper input {
        min-height: 52px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }
}

/* =========================================================
   Very Small Screens
========================================================= */

@media (max-width: 380px) {

    .workspace-brand {
        padding-right: 15px;
        padding-left: 15px;
    }

    .brand-header-text span {
        display: none;
    }

    .brand-content h1 {
        font-size: 31px;
    }

    .workspace-login-area {
        padding-right: 10px;
        padding-left: 10px;
    }

    .login-card {
        padding-right: 16px;
        padding-left: 16px;
    }
}

/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}