@import url("../fonts/poppins/poppins.css");

:root {
    --ink: #102126;
    --muted: #5f737b;
    --line: #d7e3e6;
    --panel: #ffffff;
    --soft: #eef5f3;
    --teal: #11a7aa;
    --teal-dark: #0a6870;
    --gold: #f2b33d;
    --danger: #b42318;
    --warn: #9a5b12;
    --shadow: 0 24px 70px rgba(11, 35, 39, 0.18);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: #edf3f6;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

a { color: inherit; }

.access-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 42px 20px;
    background: #eef4f4;
}

.access-visual {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 42px;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 18%, rgba(242, 179, 61, 0.22), transparent 30%),
        linear-gradient(145deg, rgba(4, 22, 37, 0.96), rgba(9, 72, 82, 0.9)),
        url("../../images/cbs/sharing-cryptobotstation.jpg") center/cover no-repeat;
}

.access-visual::after {
    content: "";
    position: absolute;
    inset: auto 8% 8% auto;
    width: min(46vw, 560px);
    aspect-ratio: 1.65;
    border: 1px solid rgba(255,255,255,0.22);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)),
        repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,0.08) 47px),
        repeating-linear-gradient(0deg, transparent 0 42px, rgba(255,255,255,0.06) 43px);
}

.brand-mark {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-logo {
    display: block;
    width: min(230px, 64vw);
    height: auto;
}

.brand-dot {
    width: 13px;
    height: 13px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 18px 0 0 #64d3c5;
}

.visual-copy {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin-top: min(18vh, 150px);
}

.eyebrow {
    margin: 0 0 12px;
    color: #93ddd3;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.visual-copy h1,
.index-hero h1 {
    margin: 0;
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(2.45rem, 5vw, 5.4rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: 0;
}

.visual-copy p,
.index-hero p {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255,255,255,0.78);
    font-size: 1rem;
    line-height: 1.8;
}

.metric-row {
    position: absolute;
    z-index: 1;
    left: 42px;
    right: 42px;
    bottom: 38px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.metric {
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 14px;
}

.metric strong {
    display: block;
    color: #ffffff;
    font-size: 1.25rem;
}

.metric span {
    color: rgba(255,255,255,0.68);
    font-size: 0.78rem;
}

.auth-panel {
    display: grid;
    align-items: center;
    width: 100%;
    padding: 0;
    background: transparent;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(42, 65, 70, 0.16);
    padding: 34px;
}

.card-title {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.2;
    text-align: center;
}

.card-copy {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
    text-align: center;
}

.field {
    margin-top: 16px;
}

label {
    display: block;
    margin: 0 0 7px;
    font-size: 0.84rem;
    font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    height: 48px;
    border: 1px solid #cbdade;
    border-radius: 6px;
    padding: 0 13px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    outline: none;
}

input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #edf2f4;
    border-color: #d4dee2;
    color: #7d8f96;
    cursor: wait;
    opacity: 0.82;
}

input:disabled::placeholder {
    color: #9aabb2;
}

.auth-card:has(input:disabled) {
    box-shadow: 0 24px 70px rgba(42, 65, 70, 0.12);
}

.password-field {
    position: relative;
}

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

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--teal-dark);
    background: #eef6ff;
    outline: none;
}

.password-toggle:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

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

.password-strength {
    margin: 12px 0 4px;
}

.strength-track {
    height: 5px;
    border-radius: 999px;
    background: #dbe7eb;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: #94a3b8;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.strength-bar.s1 { width: 20%; background: #dc2626; }
.strength-bar.s2 { width: 40%; background: #d97706; }
.strength-bar.s3 { width: 60%; background: #2563eb; }
.strength-bar.s4 { width: 80%; background: #0f766e; }
.strength-bar.s5 { width: 100%; background: #16a34a; }

.strength-label {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: right;
}

.password-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
    margin: 12px 0 4px;
    padding: 12px;
    border: 1px solid #d7e3e6;
    border-radius: 6px;
    background: #f8fbfb;
}

.password-rules span {
    color: #73858c;
    font-size: 0.76rem;
}

.password-rules span.ok {
    color: #0f766e;
    font-weight: 600;
}

.message {
    min-height: 39px;
    margin: 14px 0 18px;
    padding: 9px 14px;
    border: 1px solid #bcd6ff;
    border-radius: 5px;
    background: #eef6ff;
    color: #0b55d9;
    font-size: 0.88rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.message.error {
    border-color: #ffc9c4;
    background: #fff2f1;
    color: var(--danger);
}

.message.info { color: #0b55d9; }

.message.warn {
    border-color: #f5d69c;
    background: #fff8ea;
    color: var(--warn);
}

.actions {
    margin-top: 18px;
}

.btn-primary,
.btn-secondary,
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 6px;
    padding: 0 20px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    background: var(--teal);
    color: #ffffff;
}

.btn-primary:hover { background: var(--teal-dark); }
.btn-primary:disabled { background: #8aa6a3; cursor: wait; }

.no-script-submit {
    display: none;
}

.btn-secondary {
    border-color: rgba(255,255,255,0.36);
    color: #ffffff;
}

.link-button {
    width: 100%;
    margin-top: 10px;
    color: var(--teal-dark);
    background: #edf7f5;
}

.form-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.86rem;
}

.form-links a {
    color: var(--teal-dark);
    text-decoration: none;
    font-weight: 600;
}

.form-links a:focus,
.form-links a:hover { text-decoration: underline; }

.index-page {
    min-height: 100vh;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 18%, rgba(242, 179, 61, 0.2), transparent 30%),
        linear-gradient(135deg, rgba(4, 22, 37, 0.96), rgba(9, 72, 82, 0.88)),
        url("../../images/cbs/sharing-cryptobotstation.jpg") center/cover no-repeat;
}

.index-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 30px clamp(20px, 5vw, 72px);
}

.index-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.index-hero {
    align-self: center;
    max-width: 840px;
    padding: 8vh 0;
}

.hero-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
    gap: clamp(20px, 5vw, 64px);
    align-items: center;
}

.robot-figure {
    justify-self: center;
    width: min(330px, 70vw);
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.35));
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-actions .btn-primary {
    width: auto;
    min-width: 160px;
}

.index-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
}

.strip-item strong {
    display: block;
    color: #ffffff;
    margin-bottom: 4px;
}

.strip-item span {
    color: rgba(255,255,255,0.7);
    font-size: 0.86rem;
}

@media (max-width: 860px) {
    .access-page { grid-template-columns: 1fr; }
    .access-visual {
        min-height: auto;
        padding: 26px 24px 34px;
    }
    .access-visual::after { display: none; }
    .visual-copy { margin-top: 42px; }
    .visual-copy h1 { font-size: 2.45rem; }
    .metric-row {
        position: static;
        margin-top: 38px;
        grid-template-columns: 1fr;
    }
    .auth-panel { padding: 24px; }
    .auth-card { padding: 26px; }
    .index-strip { grid-template-columns: 1fr; }
    .hero-product { grid-template-columns: 1fr; }
    .robot-figure { width: min(270px, 70vw); }
}

@media (max-width: 460px) {
    .auth-panel { padding: 0; }
    .auth-card {
        min-height: 100vh;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
        padding: 28px 22px;
    }
    .form-links { display: block; }
    .form-links a { display: inline-block; margin-top: 10px; }
}
