/**
 * =============================================================================
 * DINPROXY Auth System - CSS Variables
 * =============================================================================
 * Colours and fonts come from platform/design/tokens.json (docs/STYLE_GUIDE.md):
 * the brand purple scale, the "onDark" error / success / warning colours and
 * the Manrope / monospace stacks. Keep the values below equal to it.
 */

/* Manrope, the website's typeface (and the one the logo is drawn in), served
   from this folder: the latin and latin-ext files of @fontsource-variable/manrope
   (SIL Open Font License, assets/fonts/OFL.txt), same ranges as its CSS. */
@font-face {
    font-family: 'Manrope Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url(../assets/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: 'Manrope Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url(../assets/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
    /* ---------------------------------------------------------------------
     * Color Palette
     * --------------------------------------------------------------------- */

    /* Background Colors */
    --ios-bg: #F5F5F7;
    --ios-card-bg: #FFFFFF;
    --ios-input-bg: #F2F2F7;

    /* Text Colors */
    --ios-text-primary: #1D1D1F;
    --ios-text-secondary: #86868B;
    --ios-text-placeholder: #C7C7CC;

    /* Brand purple (tokens brand-500, and brand-400 for links on the dark card) */
    --primary-purple: #9372FF;
    --primary-purple-light: rgba(147, 114, 255, 0.1);
    --link-purple: #ab95ff;

    /* Status colours on the dark pages (tokens danger / success / warning .onDark) */
    --error-red: #f87171;
    --error-red-bg: rgba(248, 113, 113, 0.14);
    --success-green: #34d399;
    --warning-yellow: #fbbf24;

    /* Border Colors */
    --border-light: #E5E5EA;

    /* ---------------------------------------------------------------------
     * Shadows
     * --------------------------------------------------------------------- */
    --shadow-diffuse: 0 12px 40px rgba(0, 0, 0, 0.05);
    --shadow-input-focus: 0 0 0 2px var(--primary-purple);
    --shadow-error-focus: 0 0 0 2px var(--error-red);
    
    /* ---------------------------------------------------------------------
     * Border Radius
     * --------------------------------------------------------------------- */
    --radius-card: 28px;
    --radius-input: 14px;
    --radius-capsule: 50px;
    --radius-button: 14px;
    --radius-small: 8px;
    --radius-circle: 50%;
    
    /* ---------------------------------------------------------------------
     * Spacing
     * --------------------------------------------------------------------- */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* ---------------------------------------------------------------------
     * Typography
     * --------------------------------------------------------------------- */
    /* tokens font.sans / font.mono */
    --font-family: "Manrope Variable", Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    
    --font-size-xs: 10px;
    --font-size-sm: 12px;
    --font-size-md: 13px;
    --font-size-base: 15px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 24px;
    --font-size-3xl: 26px;
    --font-size-4xl: 28px;
    --font-size-5xl: 38px;
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.05;
    --line-height-normal: 1.5;
    
    /* ---------------------------------------------------------------------
     * Transitions
     * --------------------------------------------------------------------- */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-bounce: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-pop: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* ---------------------------------------------------------------------
     * Z-Index Scale
     * --------------------------------------------------------------------- */
    --z-dropdown: 100;
    --z-modal: 200;
    --z-toast: 300;
    
    /* ---------------------------------------------------------------------
     * Layout
     * --------------------------------------------------------------------- */
    --container-max-width: 1200px;
    --card-max-width: 480px;
    --auth-card-padding: 40px;
    --auth-card-padding-mobile: 24px;
}

/**
 * =============================================================================
 * DINPROXY Auth System - Base Styles
 * =============================================================================
 * CSS Reset and base element styling
 */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Remove default margin and padding */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

/* HTML5 display-role reset */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* Set core root defaults */
html {
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    font-family: var(--font-family);
    background-color: #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ios-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: var(--line-height-normal);
    position: relative;
    overflow-x: hidden;
}

/* Background with breathing animation */
body::before {
    content: '';
    position: fixed;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    /* The original 1600 x 900 picture, enlarged 4x with the Real-ESRGAN
       x4plus model (which also sharpens the original's soft highlights) and
       colour-matched to the original, at two sizes so the ribs stay sharp on
       large and high-resolution screens (owner 2026-11-16: same pattern, only
       sharper). */
    background-image: url('../assets/images/auth-bg-1920.webp?v=4');
    background-image: -webkit-image-set(url('../assets/images/auth-bg-1920.webp?v=4') 1x, url('../assets/images/auth-bg-3840.webp?v=4') 2x);
    background-image: image-set(url('../assets/images/auth-bg-1920.webp?v=4') 1x, url('../assets/images/auth-bg-3840.webp?v=4') 2x);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

/* Remove list styles */
ol, ul {
    list-style: none;
}

/* Anchor styles */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-purple);
}

/* Image defaults */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* Remove built-in form typography styles */
input, button, textarea, select {
    font: inherit;
}

/* Button reset */
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Selection color */
::selection {
    background-color: var(--primary-purple-light);
    color: var(--primary-purple);
}

/* Placeholder styling */
::placeholder {
    color: var(--ios-text-placeholder);
    opacity: 1;
}

/* Scrollbar styling (Webkit browsers) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ios-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ios-text-secondary);
}

/* Remove spinner from number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Disabled state */
[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/**
 * =============================================================================
 * DINPROXY Auth System - Component Styles
 * =============================================================================
 * Reusable UI component styles
 */

/* =============================================================================
 * Form Components
 * ============================================================================= */

/* Form Group */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    color: var(--ios-text-secondary);
    margin-left: 4px;
}

/* Form Input */
.form-input {
    width: 100%;
    border: none;
    border-radius: var(--radius-input);
    font-size: var(--font-size-lg);
    background: var(--ios-input-bg);
    padding: 14px 16px;
    outline: none;
    color: var(--ios-text-primary);
    transition: var(--transition-fast);
}

.form-input:focus {
    background: var(--ios-card-bg);
    box-shadow: var(--shadow-input-focus);
}

.form-input.is-error {
    background: var(--error-red-bg) !important;
    box-shadow: var(--shadow-error-focus) !important;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ios-text-secondary);
    transition: color var(--transition-fast);
    border-radius: var(--radius-small);
}

.password-toggle-btn:hover {
    color: var(--primary-purple);
}

.password-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Field Error Message */
.field-error-msg {
    color: var(--error-red);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-top: 6px;
    margin-left: 4px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.field-error-msg.visible {
    display: block;
}

/* =============================================================================
 * Buttons
 * ============================================================================= */

/* Primary Submit Button */
.submit-btn {
    width: 100%;
    background-color: var(--primary-purple);
    color: white;
    font-weight: var(--font-weight-bold);
    border: none;
    padding: 14px 0;
    border-radius: var(--radius-button);
    cursor: pointer;
    font-size: var(--font-size-lg);
    transition: var(--transition-fast);
    margin-top: 5px;
}

.submit-btn:hover {
    filter: brightness(0.95);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Google Button: our own, the same height, corners and fill as the inputs;
   Google's "G" sits at the left, the wording is centred on the button. */
.google-btn {
    position: relative;
    width: 100%;
    min-height: 52px;
    padding: 12px 52px;
    border: none;
    border-radius: var(--radius-input);
    background: var(--ios-input-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: var(--font-weight-medium);
    color: var(--ios-text-primary);
    transition: var(--transition-fast);
    font-size: var(--font-size-base);
}

.google-btn:hover {
    background: #E5E5EA;
}

.google-btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-input-focus);
}

.google-btn:disabled {
    cursor: progress;
    opacity: 0.7;
}

.google-btn .google-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
}

/* =============================================================================
 * Divider
 * ============================================================================= */

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--spacing-lg) 0;
    color: var(--ios-text-placeholder);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.divider::before {
    margin-right: 15px;
}

.divider::after {
    margin-left: 15px;
}

/* =============================================================================
 * Toggle Switch
 * ============================================================================= */

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Hidden from view but still a real checkbox for keyboards and screen readers. */
.toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.toggle-input:focus-visible + .toggle-slider {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

.toggle-slider {
    width: 36px;
    height: 20px;
    background-color: var(--border-light);
    border-radius: 20px;
    position: relative;
    transition: var(--transition-normal);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-circle);
    background: white;
    top: 2px;
    left: 2px;
    transition: var(--transition-normal);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-slider {
    background-color: var(--primary-purple);
}

.toggle-input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

.toggle-text {
    color: var(--ios-text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-md);
}

/* =============================================================================
 * Bot check (Cloudflare Turnstile)
 * =============================================================================
 * Cloudflare draws the widget (dark theme, full width, English) in the slot
 * and shows it only when the visitor has to click (appearance
 * interaction-only); TurnstileWidget.js adds .is-shown meanwhile. Its look is
 * Cloudflare's own, left as Cloudflare draws it (no rounding or clipping). */

.turnstile-field.is-shown {
    margin-bottom: var(--spacing-lg);
}

/* Until TurnstileWidget.js shows it (form filled in), the widget keeps
   running but takes no room: a click request waits out of sight. */
.turnstile-field:not(.is-shown) .turnstile-slot {
    height: 0;
    overflow: hidden;
}

/* Cloudflare's frame sits in a closed shadow root and keeps its own look. */
.turnstile-slot > div {
    display: block;
    /* No line box under the frame: the element is exactly the widget's 65px. */
    line-height: 0;
}

/* A message (still checking, failed) keeps its own spacing. */
.turnstile-field .field-error-msg {
    margin-bottom: var(--spacing-md);
}

/* The connect-Google step hides the bot check (the Google token stands in). */
.turnstile-field[hidden] {
    display: none;
}

/* =============================================================================
 * Sign in with Google (js/components/GoogleSignIn.js)
 * =============================================================================
 * Our own .google-btn is drawn in the slot; the section stays hidden until it
 * is set up. */

.google-section[hidden],
.google-link-notice[hidden] {
    display: none;
}

.google-slot {
    min-height: 52px;
}

.google-link-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: var(--spacing-lg);
    padding: 12px var(--spacing-md);
    border: 1px solid rgba(147, 114, 255, 0.4);
    border-radius: var(--radius-input);
    background: var(--primary-purple-light);
    color: var(--ios-text-primary);
    font-size: var(--font-size-md);
    line-height: 1.5;
}

.google-link-notice p {
    flex: 1;
    margin: 0;
}

.google-link-cancel {
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--primary-purple);
    font: inherit;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
}

.login-page .form-input[readonly] {
    opacity: 0.7;
}

/* =============================================================================
 * Success Animation
 * ============================================================================= */

.success-content-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 0;
    animation: popIn var(--transition-pop);
}

.success-content-wrapper.visible {
    display: flex;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-circle);
    display: block;
    stroke-width: 2;
    stroke: white;
    stroke-miterlimit: 10;
    margin-bottom: var(--spacing-lg);
    box-shadow: inset 0px 0px 0px var(--primary-purple);
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.success-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--primary-purple);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.success-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--ios-text-primary);
    margin-bottom: 10px;
}

.success-sub {
    font-size: var(--font-size-base);
    color: var(--ios-text-secondary);
    line-height: var(--line-height-normal);
}

/* =============================================================================
 * Animations
 * ============================================================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes iosShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px var(--primary-purple);
    }
}
/**
 * =============================================================================
 * DINPROXY Auth System - Layout Styles
 * =============================================================================
 * Page layout and container styles
 */

/* =============================================================================
 * Main Container
 * ============================================================================= */

.container {
    display: flex;
    width: 100%;
    max-width: var(--container-max-width);
    min-height: 600px;
    margin: 20px;
    align-items: stretch;
    justify-content: center;
    gap: 60px;
}

/* =============================================================================
 * Panel Content (Left & Right)
 * ============================================================================= */

.panel-content {
    width: 100%;
    max-width: var(--card-max-width);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =============================================================================
 * Left Panel (Marketing)
 * ============================================================================= */

.left-panel {
    padding-right: 20px;
}

/* Brand Logo: the DINPROXY wordmark is an inline SVG that takes the text colour */
.wordmark {
    display: block;
    width: auto;
}

.brand-logo {
    margin-bottom: var(--spacing-lg);
    color: #000;
}

.brand-logo .wordmark {
    height: 18px;
}

/* The wordmark links to the website (GET /home redirects to it). */
.brand-home-link {
    display: inline-flex;
    color: inherit;
    border-radius: 4px;
    transition: opacity var(--transition-fast);
}

.brand-home-link:hover {
    opacity: 0.8;
}

.brand-home-link:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 4px;
}

/* Marketing Hero Section */
.marketing-hero h1 {
    font-size: var(--font-size-5xl);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.5px;
}

.marketing-hero p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-normal);
    color: var(--ios-text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Promo card (left panel): the promotion slot, filled from
   js/components/PromoCard.js. The campaign's artwork (set by the script)
   fills the card, deep on the left where the title sits. The title is the
   only text: white, its second line in a warm gradient that answers the warm
   light in the artwork. */
.promo-card {
    position: relative;
    display: flex;
    aspect-ratio: 11 / 6;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    container-type: inline-size;
    margin-bottom: 4px;
    border-radius: 24px;
    background-color: #2a1aa6;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 24px 28px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 60px rgba(20, 10, 80, 0.5);
    color: #FFFFFF;
}

.promo-body {
    max-width: 54%;
}

/* .left-panel .marketing-hero p sets the panel's paragraphs; this overrides it. */
.left-panel .marketing-hero .promo-title {
    margin: 0;
    color: #FFFFFF;
    /* Scales with the card, so the title keeps clear of the artwork's mark. */
    font-size: 32px;
    font-size: clamp(26px, 7.2cqi, 36px);
    font-weight: var(--font-weight-semibold);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.promo-title span {
    display: block;
    white-space: nowrap;
}

.promo-title .promo-title-accent {
    background: linear-gradient(90deg, #ff9ccf 0%, #ffad8a 55%, #ffd486 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.promo-link {
    display: inline-block;
    margin-top: 14px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

.promo-link::after {
    content: ' \2192';
}

/* Partner Section */
.partner-section {
    margin-top: 30px;
}

.partner-title {
    font-size: var(--font-size-xs);
    color: var(--ios-text-secondary);
    margin-bottom: 8px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-img-slot {
    height: 30px;
    display: flex;
    align-items: center;
    color: var(--ios-text-placeholder);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

/* Privacy frameworks we follow — statements of practice, not certifications */
.framework-list {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: #FFFFFF;
    letter-spacing: 0.3px;
}

.framework-list span {
    color: var(--primary-purple);
    margin: 0 8px;
}

/* =============================================================================
 * Left Panel Text Colors for Dark Background
 * ============================================================================= */

.left-panel {
    color: #FFFFFF;
}

.left-panel .brand-logo {
    color: #FFFFFF;
}

.left-panel .marketing-hero h1 {
    color: #FFFFFF;
    font-size: 40px;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.left-panel .marketing-hero h1 .hero-accent {
    color: var(--primary-purple);
}

.left-panel .marketing-hero p {
    color: rgba(255, 255, 255, 0.8);
}

.left-panel .partner-title {
    color: rgba(255, 255, 255, 0.7);
}

/* =============================================================================
 * Right Panel (Auth Card)
 * ============================================================================= */

.auth-card {
    background: var(--ios-card-bg);
    padding: var(--auth-card-padding);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-diffuse);
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: height var(--transition-normal);
}

/* Auth Card Title */
.auth-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    letter-spacing: -0.5px;
}

/* Form Content Wrapper */
.form-content-wrapper {
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.form-content-wrapper.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    display: none;
}

/* Auth Footer */
.auth-footer {
    font-size: var(--font-size-md);
    text-align: center;
    margin-top: var(--spacing-lg);
    color: var(--ios-text-secondary);
    line-height: var(--line-height-normal);
}

.auth-footer a {
    color: var(--ios-text-primary);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-fast);
}

.auth-footer a:hover {
    color: var(--primary-purple);
}

/* Footer Link with Animated Underline */
.footer-link-animated {
    color: var(--primary-purple) !important;
    position: relative;
    display: inline-block;
}

.footer-link-animated::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-purple);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.footer-link-animated:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* =============================================================================
 * Login-Specific Layout
 * ============================================================================= */

.login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    font-size: var(--font-size-md);
}

/* =============================================================================
 * Mobile Logo (hidden on desktop, shown when left panel is hidden)
 * ============================================================================= */

.mobile-logo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.mobile-logo-text {
    display: inline-flex;
    color: var(--ios-text-primary);
}

.mobile-logo-text .wordmark {
    height: 17px;
}

/* =============================================================================
 * Responsive Design
 * ============================================================================= */

@media (max-width: 960px) {
    .container {
        flex-direction: column;
        gap: 0;
        margin: 20px;
        align-items: center;
    }

    .left-panel {
        display: none;
    }

    .panel-content {
        max-width: 100%;
    }

    .mobile-logo {
        display: flex;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px var(--auth-card-padding-mobile);
    }

    .container {
        margin: 10px;
        width: auto;
    }

    .mobile-logo {
        margin-bottom: 18px;
    }
}
/**
 * =============================================================================
 * DINPROXY Auth System - Page-Specific Styles
 * =============================================================================
 * Styles specific to individual pages
 */

/* =============================================================================
 * Login Page Specifics
 * ============================================================================= */

/* Remember Me Toggle */
.login-page .login-actions {
    margin-bottom: 20px;
}

.login-page .remember-text {
    color: var(--ios-text-secondary);
    font-weight: var(--font-weight-medium);
}

/* =============================================================================
 * Register Page Specifics
 * ============================================================================= */

.register-page .auth-card {
    padding: 35px 40px;
}

.register-page .divider {
    margin: 20px 0;
}

/* Terms of Service Link */
.register-page .auth-footer a:not(.footer-link-animated) {
    color: var(--ios-text-primary);
}

/* =============================================================================
 * Error States - Page Level
 * ============================================================================= */

.page-error {
    background: var(--error-red-bg);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: var(--radius-input);
    padding: 12px var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    display: none;
}

.page-error.visible {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.page-error::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    background-color: var(--error-red);
    border-radius: 50%;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.page-error-text {
    color: var(--error-red);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: 1.45;
}

/* =============================================================================
 * Loading States
 * ============================================================================= */

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius-card);
}

.loading-overlay.visible {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================================================
 * Password Strength Indicator (Register Page)
 * ============================================================================= */

.password-strength {
    margin-top: 8px;
    display: none;
}

.password-strength.visible {
    display: block;
}

.password-strength-bar {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.password-strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.password-strength-fill.weak {
    width: 33%;
    background-color: var(--error-red);
}

.password-strength-fill.medium {
    width: 66%;
    background-color: var(--warning-yellow);
}

.password-strength-fill.strong {
    width: 100%;
    background-color: var(--success-green);
}

.password-strength-text {
    font-size: var(--font-size-xs);
    color: var(--ios-text-secondary);
}

/* =============================================================================
 * Confirm Password Match Indicator
 * ============================================================================= */

.password-match-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: var(--font-size-sm);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.password-match-indicator.visible {
    opacity: 1;
}

.password-match-indicator.match {
    color: var(--success-green);
}

.password-match-indicator.no-match {
    color: var(--error-red);
}

.password-match-indicator svg {
    width: 14px;
    height: 14px;
}

/* =============================================================================
 * Countdown Timer (Register Success)
 * ============================================================================= */

.countdown-wrapper {
    margin-top: 5px;
    font-size: var(--font-size-md);
    color: var(--ios-text-secondary);
}

.countdown-number {
    font-weight: var(--font-weight-bold);
    color: var(--primary-purple);
}
/* =============================================================================
 * Enhanced Mobile Responsive Design (v1.1.2)
 * ============================================================================= */

@media (max-width: 768px) {
    body {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .container {
        flex-direction: column;
        gap: 0;
        margin: 0;
        min-height: 100vh;
        min-height: 100dvh;
        width: 100%;
        border-radius: 0;
    }

    .left-panel {
        display: none;
    }

    .panel-content {
        max-width: 100%;
        width: 100%;
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
    }

    .auth-card {
        width: 100%;
        max-width: 480px;
        border-radius: 20px;
        padding: 28px 20px;
        box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    }

    .auth-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .google-btn {
        font-size: 14px;
        min-height: 48px;
        padding: 12px 48px;
    }

    .google-btn .google-icon {
        left: 16px;
    }

    .form-input {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 12px 14px;
    }

    .submit-btn {
        font-size: 15px;
        padding: 14px;
    }

    .auth-footer {
        font-size: 13px;
    }

    .field-error-msg {
        font-size: 12px;
    }

    .divider {
        margin: 16px 0;
    }

    .form-group label {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .auth-card {
        padding: 24px 16px;
        border-radius: 16px;
    }
}

/* Safe area insets for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
    .panel-content {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/**
 * =============================================================================
 * Dark Glass + Neumorphism theme (unified with the marketing site & dashboard)
 * =============================================================================
 * Redefines the iOS light tokens as a dark palette so every component that
 * reads `var(--ios-*)` recolors automatically, then frosts the auth card and
 * fixes the few hard-coded light values. Form/validation behaviour is
 * untouched.
 */
:root {
    --ios-bg: #0b0a12;
    --ios-card-bg: rgba(22, 19, 36, 0.72);
    --ios-input-bg: rgba(255, 255, 255, 0.06);
    --ios-text-primary: #f3f1fb;
    --ios-text-secondary: rgba(255, 255, 255, 0.58);
    --ios-text-placeholder: rgba(255, 255, 255, 0.34);
    --border-light: rgba(255, 255, 255, 0.12);
    --shadow-diffuse: 0 24px 70px rgba(0, 0, 0, 0.5);
}

/* Frosted glass auth card */
.auth-card {
    background: var(--ios-card-bg);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Inputs: subtle glass with a defining hairline (the base rule sets border:none) */
.form-input {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Primary button keeps the brand purple but gains a glow */
.submit-btn {
    box-shadow: 0 8px 24px rgba(147, 114, 255, 0.35);
}

/* Google button: the inputs' hairline; hover used a hard-coded light grey */
.google-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Loading overlay was opaque white — make it dark frosted so the spinner reads */
.loading-overlay {
    background: rgba(11, 10, 18, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Bugfix: the responsive @media blocks re-declare `.panel-content{display:flex}`
   AFTER `.left-panel{display:none}` (equal specificity), which resurrected the
   marketing panel on mobile — defeating the whole `.mobile-logo` fallback and
   stacking two headers. Raise specificity here (last in the file) to restore
   the intended single-column auth card on phones/tablets. */
@media (max-width: 960px) {
    .left-panel.panel-content { display: none; }
}

/* Skip the image breathing for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
    body::before { animation: none; }
}

/* =============================================================================
 * Forgot password (login link and reset page)
 * ============================================================================= */

.forgot-link {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    color: var(--link-purple);
    text-decoration: none;
}

.forgot-link:hover,
.forgot-link:focus-visible {
    text-decoration: underline;
}

.reset-hint {
    margin: 0 0 18px;
    font-size: var(--font-size-md);
    line-height: 1.55;
    color: var(--ios-text-secondary);
    overflow-wrap: anywhere;
}

.reset-again {
    margin: 16px 0 0;
}

.reset-code {
    letter-spacing: 0.3em;
    font-family: var(--font-mono);
}

.reset-code::placeholder {
    letter-spacing: normal;
    font-family: inherit;
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: var(--font-weight-medium);
    color: var(--link-purple);
    cursor: pointer;
}

.link-button:hover,
.link-button:focus-visible {
    text-decoration: underline;
}
