/* ==========================================================================
   VayuOS Login Theme — DARK • LIQUID GLASS • SAFFRON • CSP SAFE
   ========================================================================== */

:root {
    /* Backgrounds */
    --auth-bg: radial-gradient(circle at 50% 0%, #1a0f05 0%, #050505 60%);
    --card-bg: rgba(20, 20, 20, 0.88);
    --card-border: rgba(255, 255, 255, 0.12);

    /* Text */
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.65);

    /* Brand (Saffron) */
    --primary: #ff6600;
    --primary-hover: #ff8533;
    --primary-glow: rgba(255, 102, 0, 0.35);

    /* Inputs */
    --input-bg: rgba(255, 255, 255, 0.08);
    --input-border: rgba(255, 255, 255, 0.18);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow:
        0 20px 40px rgba(0, 0, 0, 0.65),
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 -1px 1px rgba(0, 0, 0, 0.45);

    /* Shape & motion */
    --radius: 18px;
    --transition-fast: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --------------------------------------------------------------------------
   PAGE BACKGROUND
   -------------------------------------------------------------------------- */
body.auth-page {
    margin: 0;
    min-height: 100vh;
    background: var(--auth-bg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
}

/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.login-card {
    width: 100%;
    max-width: 500px;

    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);

    padding: 40px 36px 48px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);

    text-align: center;
}

/* --------------------------------------------------------------------------
   LOGO
   -------------------------------------------------------------------------- */
.login-logo {
    margin-bottom: 28px;
}

.login-logo img {
    width: 270px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   TITLE
   -------------------------------------------------------------------------- */
.login-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

/* INPUTS */
.form-input {
    width: 80%;
    box-sizing: border-box;
    height: 40px;

    padding: 0 20px;

    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 999px;

    color: var(--text-main);
    font-size: 1rem;
    line-height: 40px;
    /* Vertically center text */

    appearance: none;
    -webkit-appearance: none;

    transition: var(--transition-fast);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.25);
}

/* --------------------------------------------------------------------------
   OTP HINT
   -------------------------------------------------------------------------- */
.otp-hint {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* --------------------------------------------------------------------------
   BUTTONS — LIQUID GLASS + SAFFRON GLOW
   -------------------------------------------------------------------------- */
.btn-login {
    width: 80%;
    margin: 0 auto;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);

    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: none;

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.65),
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 -1px 1px rgba(0, 0, 0, 0.45);

    cursor: pointer;
    position: relative;
    overflow: hidden;

    transition: var(--transition-fast);
}

/* Glass rim */
.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;

    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.7),
            rgba(255, 255, 255, 0.15) 40%,
            rgba(255, 255, 255, 0.15) 60%,
            rgba(255, 255, 255, 0.7));

    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;

    pointer-events: none;
}

/* SAFFRON HOVER */
.btn-login:hover {
    background: rgba(255, 102, 0, 0.25);
    border-color: var(--primary);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 8px 24px var(--primary-glow);

    transform: translateY(-1px);
}

/* Press */
.btn-login:active {
    transform: translateY(1px);
}

/* Disabled */
.btn-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* --------------------------------------------------------------------------
   FOOTER LINK
   -------------------------------------------------------------------------- */
.auth-link-container {
    margin-top: 32px;
}

.auth-link {
    font-size: 0.95rem;
    color: var(--primary);
    text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   STEP CONTROL
   -------------------------------------------------------------------------- */
#login-step-2 {
    display: none;
}