/* Copyright (c) 2026 Skylon Development Ltd. All rights reserved. */
/* The sign-in pages in the look of the new homepage (login, register, reset password, set password).
   Every rule is scoped to body.jc-auth, so a page without that class is not touched.
   Loaded after each page's own <style>, so equal rules here win. */

body.jc-auth {
    --a-bg: #0c1011;
    --a-panel: #171d1f;
    --a-field: #0f1416;
    --a-line: #303a3c;
    --a-line-strong: #46514f;
    --a-ink: #f2f0ea;
    --a-muted: #abb4b4;
    --a-dim: #7d8a82;
    --a-gold: #c4aa77;
    --a-pale: #e0ca9e;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--a-bg);
    color: var(--a-ink);
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 16px 64px;
}

/* The grey striped ground of the old page gives way to the homepage's dark ground with a soft gold light. */
body.jc-auth .noise-overlay {
    background:
        radial-gradient(60% 55% at 50% 38%, rgba(196,170,119,.10), rgba(196,170,119,0) 70%),
        linear-gradient(180deg, #0c1011 0%, #0f1416 50%, #0c1011 100%);
    background-blend-mode: normal;
    filter: none;
}
body.jc-auth .jc-wm { opacity: .07; }

/* The top bar: the homepage's mark and name, and one link. */
body.jc-auth .auth-top {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    height: 78px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
body.jc-auth .auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--a-ink);
    text-decoration: none;
    letter-spacing: .1em;
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
}
body.jc-auth .auth-brand img { width: 36px; height: 36px; object-fit: contain; }
body.jc-auth .auth-top-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #53605d;
    border-radius: 6px;
    color: var(--a-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .2s, background .2s;
}
body.jc-auth .auth-top-link:hover { border-color: var(--a-gold); background: rgba(196,170,119,.08); }

/* The card. */
body.jc-auth .login-container,
body.jc-auth .register-container,
body.jc-auth .reset-container,
body.jc-auth .password-container {
    margin: 40px auto 0;
    flex-shrink: 0;
    background: rgba(23,29,31,.94);
    border: 1px solid var(--a-line);
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(196,170,119,.06);
    padding: 36px 40px 34px;
    backdrop-filter: blur(8px);
}
body.jc-auth .login-container,
body.jc-auth .reset-container,
body.jc-auth .password-container { max-width: 440px; }
body.jc-auth .reset-container,
body.jc-auth .password-container { position: relative; z-index: 10; width: 100%; }
body.jc-auth .register-container { max-width: 560px; }

/* The card's head: no logo picture (the mark is in the top bar), a heading in the homepage's type. */
body.jc-auth .login-logo,
body.jc-auth .register-logo,
body.jc-auth .reset-logo,
body.jc-auth .password-logo { text-align: left; margin-bottom: 24px; }
body.jc-auth .logo-icon,
body.jc-auth .password-logo img { display: none !important; }
body.jc-auth .auth-eyebrow {
    display: block;
    color: var(--a-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
body.jc-auth .auth-title {
    color: var(--a-ink);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0;
}
body.jc-auth .login-logo p,
body.jc-auth .register-logo p,
body.jc-auth .reset-logo p,
body.jc-auth .password-logo p {
    color: var(--a-muted);
    font-size: 15px;
    line-height: 1.5;
    margin-top: 10px;
}

/* Login and Register as one switch. */
body.jc-auth .login-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 24px;
    border: 1px solid var(--a-line);
    border-radius: 8px;
    background: var(--a-field);
}
body.jc-auth .tab-btn {
    flex: 1;
    min-height: 38px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--a-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.jc-auth .tab-btn:hover { color: var(--a-ink); background: rgba(255,255,255,.04); }
body.jc-auth .tab-btn.active,
body.jc-auth .tab-btn.active:hover {
    background: #263032;
    color: var(--a-ink);
    box-shadow: inset 0 0 0 1px var(--a-line-strong);
}
body.jc-auth .tab-btn.active::after { display: none; }

/* Fields. */
body.jc-auth .login-form,
body.jc-auth .register-form,
body.jc-auth .password-form { gap: 18px; }
body.jc-auth .reset-container .form-group { margin-bottom: 18px; }
body.jc-auth .reset-container .form-group,
body.jc-auth .password-container .form-group { display: flex; flex-direction: column; }
body.jc-auth .password-requirements { color: var(--a-dim); font-size: 12.5px; margin-top: 0; }
body.jc-auth .form-group { gap: 7px; }
body.jc-auth .form-group label {
    color: #cfd6d4;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
body.jc-auth .form-group input[type="text"],
body.jc-auth .form-group input[type="email"],
body.jc-auth .form-group input[type="password"],
body.jc-auth .modal-input {
    height: 46px;
    padding: 0 14px;
    background: var(--a-field);
    border: 1px solid var(--a-line);
    border-radius: 8px;
    color: var(--a-ink);
    font-family: inherit;
    font-size: 15px;
}
body.jc-auth .form-group input::placeholder,
body.jc-auth .modal-input::placeholder { color: #66716f; }
body.jc-auth .form-group input:focus,
body.jc-auth .modal-input:focus {
    outline: none;
    border-color: var(--a-gold);
    box-shadow: 0 0 0 3px rgba(196,170,119,.16);
}
body.jc-auth .form-group small { color: var(--a-dim); font-size: 12.5px; line-height: 1.45; }

/* The eye: an icon in place of the emoji; the page's own toggle still changes the field. */
body.jc-auth .reset-container .password-wrapper,
body.jc-auth .password-input-wrapper { position: relative; display: block; }
body.jc-auth .reset-container .password-wrapper input,
body.jc-auth .password-input-wrapper input { width: 100%; }
body.jc-auth .password-wrapper input,
body.jc-auth .password-input-wrapper input { padding-right: 46px; }
body.jc-auth .reset-container .toggle-password,
body.jc-auth .password-container .toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    padding: 0;
}
body.jc-auth .toggle-password {
    width: 34px;
    height: 34px;
    right: 6px;
    border-radius: 6px;
    font-size: 0;
    color: transparent;
    background: center / 20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23abb4b4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
body.jc-auth .password-wrapper input[type="text"] + .toggle-password,
body.jc-auth .password-input-wrapper input[type="text"] + .toggle-password {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4aa77' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 5.1A10.8 10.8 0 0 1 12 5c6.5 0 10 7 10 7a17.6 17.6 0 0 1-3.2 4.2'/%3E%3Cpath d='M6.6 6.6C3.7 8.4 2 12 2 12s3.5 7 10 7a9.7 9.7 0 0 0 5.4-1.6'/%3E%3Cpath d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
}
body.jc-auth .toggle-password:hover { background-color: rgba(255,255,255,.06); }

/* The checkbox line of the register page. */
body.jc-auth .checkbox-label {
    color: var(--a-muted);
    font-size: 13.5px;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    gap: 10px;
}
body.jc-auth .checkbox-label input { accent-color: var(--a-gold); width: 17px; height: 17px; margin-top: 2px; }
body.jc-auth .checkbox-label a { color: var(--a-pale); }

/* The main button: the homepage's gold button. */
body.jc-auth .login-btn,
body.jc-auth .register-btn,
body.jc-auth .reset-btn,
body.jc-auth .submit-btn,
body.jc-auth .btn-primary {
    min-height: 48px;
    border: 1px solid var(--a-gold);
    border-radius: 6px;
    background: linear-gradient(115deg, #dfc596, #b79a67);
    color: #171a18;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 3px 17px rgba(197,165,104,.10);
}
body.jc-auth .login-btn:hover,
body.jc-auth .register-btn:hover,
body.jc-auth .reset-btn:hover,
body.jc-auth .submit-btn:hover,
body.jc-auth .btn-primary:hover { background: linear-gradient(115deg, #e8d1a6, #c2a572); transform: none; }
body.jc-auth .btn-primary { min-height: 42px; padding: 0 20px; }
body.jc-auth .btn-cancel {
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid #53605d;
    border-radius: 6px;
    background: transparent;
    color: var(--a-ink);
    font-family: inherit;
    font-weight: 600;
}

/* Small links under the form. */
body.jc-auth .forgot-password { margin-top: 18px; text-align: center; }
body.jc-auth .back-link { margin-top: 20px; text-align: center; }
body.jc-auth .forgot-password a,
body.jc-auth .back-link a,
body.jc-auth .login-link a { color: var(--a-pale); font-weight: 500; }
body.jc-auth .login-link { color: var(--a-muted); font-size: 14px; margin-top: 20px; }

/* Messages. */
body.jc-auth .error-message { border-radius: 8px; }
body.jc-auth .success-message { border-radius: 8px; }
body.jc-auth .message { border-radius: 8px; }
body.jc-auth .loading-overlay { background: var(--a-bg); }
body.jc-auth .loading-text { color: var(--a-muted); font-family: inherit; }

/* The forgot password window. */
body.jc-auth .modal-content {
    background: var(--a-panel);
    border: 1px solid var(--a-line);
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
body.jc-auth .modal-header h3 { color: var(--a-ink); font-family: inherit; }
body.jc-auth .modal-desc { color: var(--a-muted); }

/* The line at the foot. */
body.jc-auth .footer-text { color: #66716f; font-size: 12px; z-index: 5; }

@media (max-width: 560px) {
    body.jc-auth { padding: 0 12px 56px; }
    body.jc-auth .auth-top { height: 64px; }
    body.jc-auth .auth-brand { font-size: 14px; gap: 8px; }
    body.jc-auth .auth-brand img { width: 29px; height: 29px; }
    body.jc-auth .auth-top-link { min-height: 36px; padding: 0 12px; font-size: 13px; }
    body.jc-auth .login-container,
    body.jc-auth .register-container,
    body.jc-auth .reset-container,
    body.jc-auth .password-container { margin-top: 16px; padding: 26px 20px 24px; }
    body.jc-auth .auth-title { font-size: 25px; }
    body.jc-auth .footer-text { position: static; margin-top: 24px; }
}

/* The reset page keeps its own gap under a label; here it matches the other sign-in pages. */
body.jc-auth .reset-container .form-group label { margin-bottom: 0; }
