:root {
    --bg: #08090b;
    --panel: rgba(18, 20, 24, 0.9);
    --panel-strong: #111318;
    --line: rgba(255, 255, 255, 0.12);
    --text: #f6f3ee;
    --muted: #a7a29a;
    --orange: #ff4d18;
    --orange-2: #ff8a3d;
    --steel: #20252d;
    --success: #40c27a;
    --error: #ff5f57;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 77, 24, 0.28), transparent 30rem),
        radial-gradient(circle at 84% 12%, rgba(255, 138, 61, 0.18), transparent 22rem),
        linear-gradient(145deg, #050506 0%, #12151b 48%, #050506 100%);
    -webkit-tap-highlight-color: transparent;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

a {
    color: var(--orange-2);
}

.auth-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px clamp(18px, 4vw, 48px);
    backdrop-filter: blur(18px);
    background: rgba(5, 6, 8, 0.72);
    border-bottom: 1px solid var(--line);
}

.brand,
.ghost-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}

.brand-logo {
    width: auto;
    height: 44px;
    max-width: 180px;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 10px 22px rgba(255, 77, 24, 0.24));
}

.brand-wordmark,
.company-name {
    font-family: "Bebas Neue", "Inter", system-ui, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    color: var(--text);
    text-shadow: 0 8px 22px rgba(255, 77, 24, 0.18);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #0b0b0c;
    font-family: "Bebas Neue", sans-serif;
    font-size: 24px;
    letter-spacing: 0.03em;
}

.page-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 900;
}

.demo-btn {
    width: 100%;
    margin-top: 12px;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 138, 61, 0.45);
    background: transparent;
    color: #ff8a3d;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.demo-btn:hover { background: rgba(255, 77, 24, 0.12); }

.page-home-button:hover {
    border-color: rgba(255, 138, 61, 0.65);
    color: var(--orange-2);
}

.ghost-link {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: calc(100vh - 80px);
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 48px 0;
}

.auth-hero {
    position: relative;
}

.eyebrow,
.panel-kicker,
.role-label {
    margin: 0 0 10px;
    color: var(--orange-2);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-hero h1 {
    margin: 0;
    max-width: 760px;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(4rem, 11vw, 8.5rem);
    line-height: 0.84;
    letter-spacing: 0.02em;
}

.hero-copy {
    max-width: 640px;
    margin: 28px 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-row span {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #d8d2c9;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-card {
    position: relative;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(28, 31, 37, 0.92), rgba(13, 14, 17, 0.96));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 6px;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.mode-tab,
button,
input,
textarea {
    font: inherit;
}

.mode-tab {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.mode-tab.active {
    color: #0d0e10;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
}

.auth-panel h2 {
    margin: 0 0 18px;
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    line-height: 1;
}

form,
.form-grid,
.upload-grid {
    display: grid;
    gap: 16px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
    display: grid;
    gap: 8px;
    color: #d9d4cc;
    font-size: 0.94rem;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: rgba(255, 138, 61, 0.75);
    box-shadow: 0 0 0 4px rgba(255, 77, 24, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

input[type="file"] {
    padding: 12px;
}

.primary-btn,
.text-btn,
.role-card {
    min-height: 48px;
    border: 0;
    cursor: pointer;
}

.primary-btn {
    width: 100%;
    margin-top: 6px;
    border-radius: 16px;
    color: #08090b;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(255, 77, 24, 0.24);
}

.primary-btn:disabled {
    cursor: progress;
    opacity: 0.72;
}

.switch-copy {
    margin: 18px 0 0;
    color: var(--muted);
    text-align: center;
}

.role-grid {
    display: grid;
    gap: 14px;
}

.role-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--text);
    text-align: left;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.role-card strong {
    font-size: 1.1rem;
}

.role-card span:last-child {
    color: var(--muted);
    line-height: 1.5;
}

.role-card:hover,
.ghost-link:hover {
    border-color: rgba(255, 138, 61, 0.65);
}

.text-btn {
    margin-top: 16px;
    padding: 0;
    color: var(--orange-2);
    background: transparent;
    font-weight: 800;
}

.auth-status {
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
}

.auth-status.success {
    border-color: rgba(64, 194, 122, 0.45);
    color: #dff8ea;
}

.auth-status.error {
    border-color: rgba(255, 95, 87, 0.55);
    color: #ffd7d4;
}

.hidden {
    display: none;
}

@media (max-width: 920px) {
    .auth-shell {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .auth-hero h1 {
        max-width: 620px;
    }
}

@media (max-width: 620px) {
    .auth-header {
        padding: 14px 16px;
    }

    .ghost-link {
        display: none;
    }

    .auth-shell {
        width: min(100% - 24px, 560px);
        padding: 28px 0;
    }

    .form-grid,
    .upload-grid {
        grid-template-columns: 1fr;
    }
}
/* Global Styles */
body {
    margin: 0;
    font-family: 'Teko', sans-serif;
    background-color: #121212;
    color: #ffffff;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    -webkit-tap-highlight-color: transparent;
}

/* Sticky Header */
header {
    background-color: #1e1e1e;
    padding: 10px 0;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #1e1e1e;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Top Bar Styling */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Company Name Styling */
.company-name {
    flex-grow: 1;
    text-align: center;
}

/* Login Page Styling */
.login-page {
    padding-top: 100px; /* Adjust based on header height */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-form, .signup-selection, .signup-form {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    margin-bottom: 20px;
}

.login-form h2, .signup-selection h2, .signup-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.login-form label, .signup-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.login-form input, .signup-form input, .signup-form textarea {
    width: 92%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #333;
    color: #ffffff;
}

/* Menu Button Styling */
.menu-button {
    position: relative;
}

.menu-btn {
    background-color: #f4511e;
    color: white;
    border: none;
    padding: 10px 15px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.menu-btn:hover {
    background-color: #e1401a;
}

/* Dropdown Menu Styling */

.dropdown-menu {
    position: absolute;
    top: 40px;
    left: 0;
    background-color: #1e1e1e;
    border-radius: 5px;
    overflow: hidden;
    display: none;
}

.dropdown-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 10px 0;
}

.dropdown-menu ul li {
    margin: 0;
}

.dropdown-menu ul li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
}

.dropdown-menu ul li a:hover {
    background-color: #444;
}

.login-btn, .signup-btn, .signup-option-btn {
    background-color: #f4511e;
    color: white;
    border: none;
    padding: 12px 15px;
    min-height: 44px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    width: 100%;
}

.login-form p {
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
}

#showSignupOptions {
    font-size: 20px;
    color: #f4511e;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

#showSignupOptions:hover {
    color: #e1401a;
    text-decoration: underline;
}

.login-btn:hover, .signup-btn:hover, .signup-option-btn:hover {
    background-color: #e1401a;
}

/* Hidden Elements */
.hidden {
    display: none;
}

/* Centering Signup Options */
.signup-selection {
    text-align: center;
}

.signup-option-btn {
    margin: 10px 0;
}

/* Media Query for Small Screens */
@media (max-width: 600px) {
    .login-form, .signup-selection, .signup-form {
        width: 90%;
    }
}
