/* Hesap sayfaları: Kayıt ol (Pages/Register) ve Şirket seç (Pages/Company).
   Register follows the front page (landing.css): the blue glass card with gold chamfered corners,
   fields with an icon, the gold submit button, the station and the warship framing the card.
   Company: three tall character cards (each one is the submit button) in the company colours.
   Both show the same step row: 1 Hesap · 2 Şirket · 3 Uzay. */

/* ---- Step row ------------------------------------------------------------------------ */

.acc-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.acc-steps li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.acc-steps li + li::before { content: ""; width: 30px; height: 1px; margin-right: 2px; background: rgba(147, 164, 196, 0.3); }
.acc-steps b {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    color: var(--text-dim);
    background: rgba(4, 9, 20, 0.7);
    border: 1px solid rgba(147, 164, 196, 0.35);
    border-radius: 50%;
}
.acc-steps b svg { width: 12px; height: 12px; fill: currentColor; }
.acc-steps .active { color: #fff; }
.acc-steps .active b { color: #2a1702; background: linear-gradient(180deg, #ffe48c, #f7b532 55%, #d98c10); border-color: #ffe08a; box-shadow: 0 0 12px rgba(247, 181, 50, 0.55); }
.acc-steps .active::before { background: linear-gradient(90deg, rgba(147, 164, 196, 0.3), #f2b33a); }
.acc-steps .done { color: var(--text-dim); }
.acc-steps .done b { color: var(--ok); background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.55); }
.acc-steps .done + .active::before { background: linear-gradient(90deg, rgba(74, 222, 128, 0.6), #f2b33a); }

/* ---- Register: card on the front page's look ------------------------------------------ */

.acc-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
}

/* Station and warship of the front page, from the window edges (the page itself is centred). */
.acc-art { position: absolute; z-index: 0; top: -34px; width: auto; opacity: 0.95; pointer-events: none; }
.acc-art.left {
    left: calc(50% - 50vw);
    height: min(640px, 76vh);
    -webkit-mask-image: radial-gradient(ellipse 72% 62% at 32% 45%, #000 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 62% at 32% 45%, #000 45%, transparent 100%);
}
.acc-art.right {
    right: calc(50% - 50vw);
    top: 6px;
    height: min(540px, 64vh);
    -webkit-mask-image: radial-gradient(ellipse 72% 62% at 68% 45%, #000 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 62% at 68% 45%, #000 45%, transparent 100%);
}

.acc-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 470px;
    padding: 20px 30px 18px;
    background: linear-gradient(180deg, rgba(10, 24, 42, 0.93), rgba(5, 13, 24, 0.95));
    border: 1px solid #2d5f86;
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
    box-shadow: inset 0 0 0 1px rgba(110, 180, 230, 0.08), inset 0 0 40px rgba(40, 110, 180, 0.12);
}
.acc-card::before, .acc-card::after { content: ""; position: absolute; width: 26px; height: 26px; border: 3px solid #f2b33a; pointer-events: none; }
.acc-card::before { left: 0; top: 0; border-right: none; border-bottom: none; }
.acc-card::after { right: 0; bottom: 0; border-left: none; border-top: none; }

.acc-card-head { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #23476a; }
.acc-card-head h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; letter-spacing: 0.05em; color: #fff; text-shadow: none; }
.acc-card-head h1::before { display: none; }
.acc-card-head p { margin: 2px 0 0; font-size: 0.86rem; color: #9fb3c8; }
.acc-badge { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #3d7fb8; background: radial-gradient(#173a5c, #0a1a2b); box-shadow: 0 0 14px rgba(61, 127, 184, 0.35); }
.acc-badge svg { width: 22px; height: 22px; fill: #6fb6f0; }

.acc-card .acc-steps { margin-bottom: 16px; }

.acc-form { gap: 14px; }
.acc-field { gap: 6px; }
.acc-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-label label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #d4e2f1; cursor: pointer; }
.acc-label small { font-size: 0.74rem; color: #8ea3b8; }
.acc-label .info-dot { margin-left: 6px; letter-spacing: 0; text-transform: none; }

.acc-input { position: relative; display: block; }
.acc-input input {
    height: 44px;
    padding: 0 14px 0 42px;
    color: #fff;
    font-size: 1rem;
    background: rgba(6, 18, 32, 0.9);
    border: 1px solid #3b6c96;
    border-radius: var(--radius);
}
.acc-input input::placeholder { color: #6f849a; }
.acc-input input:hover { border-color: #4f86b5; }
.acc-input input:focus { border-color: #6fb6f0; box-shadow: 0 0 0 2px rgba(111, 182, 240, 0.2); }
.acc-input input.input-validation-error { border-color: rgba(255, 107, 107, 0.75); }
.acc-input input.input-validation-error:focus { box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2); }
.acc-input > svg { position: absolute; left: 13px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px; fill: #5aa6e6; pointer-events: none; transition: fill .15s; }
.acc-input input:focus ~ svg { fill: #9fd2ff; }
.acc-input.has-eye input { padding-right: 46px; }

.acc-eye {
    position: absolute;
    right: 5px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.acc-eye svg { width: 21px; height: 21px; fill: #8ea3b8; transition: fill .15s; }
.acc-eye:hover svg, .acc-eye[aria-pressed="true"] svg { fill: #cfe3f4; }

.acc-field .hint { margin: 0; font-size: 0.78rem; color: #8ea3b8; }
.acc-field .field-validation-valid { display: none; }
.acc-field .field-validation-error { font-size: 0.82rem; color: #ff8a8a; }

.acc-card .validation-summary-valid { display: none; }
.acc-card .validation-summary-errors {
    padding: 8px 12px;
    color: #ffb3b3;
    background: rgba(140, 20, 20, 0.22);
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius);
}
.acc-card .validation-summary-errors ul { margin: 0; padding-left: 16px; }

/* Gold submit of the front page (.landing-submit), on the shared .button. */
.acc-card .acc-submit {
    height: 48px;
    margin-top: 4px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #2a1702;
    text-shadow: none;
    background: linear-gradient(180deg, #ffe48c, #f7b532 48%, #d98c10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px #ffe08a;
}
.acc-card .acc-submit:hover { color: #2a1702; filter: brightness(1.08); }
.acc-card .acc-submit:focus-visible { box-shadow: inset 0 0 0 2px #fff; }
.acc-card .acc-submit svg { width: 18px; height: 18px; }

.acc-switch { margin: 14px 0 0; padding-top: 12px; text-align: center; font-size: 0.92rem; color: #c7d4e2; border-top: 1px solid rgba(35, 71, 106, 0.7); }
.acc-switch a { color: #4fb2ff; font-weight: 700; }
.acc-switch a:hover { color: #fff; }

/* ---- Company choice: three character cards --------------------------------------------- */

.acc-choose { max-width: 1120px; margin: 0 auto; }

.acc-choose-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 22px; text-align: center; }
.acc-choose-head h1 {
    margin: 6px 0 0;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.1em;
    background: linear-gradient(180deg, #fff6c8 0%, #ffd463 38%, #e39a18 70%, #ffcf5a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 0 #3a2203) drop-shadow(0 0 16px rgba(255, 170, 40, 0.4));
}
.acc-choose-head h1::before { display: none; }
.acc-divider { position: relative; display: block; width: 220px; height: 2px; background: linear-gradient(90deg, transparent, #f2b33a, transparent); }
.acc-divider::after { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg); background: #f2b33a; }
.acc-lead { margin: 4px 0 0; max-width: 640px; font-size: 1rem; color: #c7d4e2; }
.acc-rules { justify-content: center; }

.acc-factions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; }

/* The button carries the glow (drop-shadow follows the chamfered card inside it). */
.acc-faction {
    --c: #ff5a4e;
    --c-rgb: 255, 90, 78;
    --c-ink: #fff;
    display: block;
    width: 100%;
    height: clamp(400px, calc(100vh - 400px), 540px);
    margin: 0;
    padding: 0;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    background: none;
    border: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: transform .25s ease, filter .25s ease;
}
.acc-faction.eic { --c: #4aa8ff; --c-rgb: 74, 168, 255; }
.acc-faction.vru { --c: #5fe08a; --c-rgb: 95, 224, 138; --c-ink: #06140b; }

.acc-faction-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 16px 20px 20px;
    overflow: hidden;
    background: #05080f;
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}
.acc-faction-card > * { position: relative; z-index: 2; }
.acc-faction-card > .acc-faction-art {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    transition: transform .6s ease;
}
.acc-faction-card > .acc-faction-shade {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        linear-gradient(180deg, rgba(4, 7, 12, 0.55) 0%, transparent 18%, transparent 36%, rgba(4, 7, 12, 0.82) 60%, rgba(4, 7, 12, 0.97) 100%),
        radial-gradient(ellipse 90% 55% at 50% 0%, rgba(var(--c-rgb), 0.26), transparent 70%);
}
/* Frame + chamfered corner brackets in the company colour (diagonal piece included); above the
   art and the shade, under the texts (they keep 16-20px off the edges, so the brackets stay clear). */
.acc-faction-card::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    border: 1px solid rgba(var(--c-rgb), 0.5);
    box-shadow: inset 0 -130px 120px -100px rgba(var(--c-rgb), 0.55);
    background:
        linear-gradient(135deg, transparent 44%, var(--c) 44%, var(--c) 57%, transparent 57%) left top / 16px 16px no-repeat,
        linear-gradient(var(--c), var(--c)) left top / 36px 3px no-repeat,
        linear-gradient(var(--c), var(--c)) left top / 3px 36px no-repeat,
        linear-gradient(135deg, transparent 43%, var(--c) 43%, var(--c) 56%, transparent 56%) right bottom / 16px 16px no-repeat,
        linear-gradient(var(--c), var(--c)) right bottom / 36px 3px no-repeat,
        linear-gradient(var(--c), var(--c)) right bottom / 3px 36px no-repeat;
    transition: border-color .25s, box-shadow .25s;
}

.acc-faction-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-planet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 5px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(4, 7, 12, 0.6);
    border: 1px solid rgba(var(--c-rgb), 0.45);
    border-radius: 999px;
}
.acc-planet img { width: 24px; height: 24px; filter: drop-shadow(0 0 6px rgba(var(--c-rgb), 0.7)); }
.acc-faction-top .chip { background: rgba(4, 7, 12, 0.6); }

.acc-faction-body { display: flex; flex-direction: column; gap: 10px; }
.acc-faction-title { display: flex; align-items: center; gap: 14px; }
.acc-emblem { flex: none; width: 52px; height: 52px; }
.acc-emblem svg { display: block; width: 100%; height: 100%; fill: var(--c); filter: drop-shadow(0 0 6px var(--c)); }
.acc-faction-name { font-size: 1.18rem; font-weight: 800; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 8px #000; }
.acc-faction-text { min-height: 2.8em; font-size: 0.92rem; line-height: 1.4; color: #c7d4e2; }

.acc-faction-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(var(--c-rgb), 0.14);
    box-shadow: inset 0 0 0 1px rgba(var(--c-rgb), 0.7);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: background-color .2s, color .2s;
}
.acc-faction-cta svg { width: 16px; height: 16px; fill: currentColor; transition: transform .2s; }

/* Hover / keyboard focus: the card rises and glows, the other two step back. */
.acc-faction:hover, .acc-faction:focus-visible { transform: translateY(-6px); filter: drop-shadow(0 0 18px rgba(var(--c-rgb), 0.5)); }
.acc-faction:focus-visible { outline: none; }
.acc-faction:hover .acc-faction-art { transform: scale(1.05); }
.acc-faction:hover .acc-faction-card::after { border-color: rgba(var(--c-rgb), 0.95); box-shadow: inset 0 0 36px rgba(var(--c-rgb), 0.25), inset 0 -170px 140px -100px rgba(var(--c-rgb), 0.75); }
.acc-faction:focus-visible .acc-faction-card::after { border: 2px solid #fff; }
.acc-faction:hover .acc-faction-cta, .acc-faction:focus-visible .acc-faction-cta {
    color: var(--c-ink);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.15)), var(--c);
}
.acc-faction:hover .acc-faction-cta svg { transform: translateX(3px); }
.acc-factions:hover .acc-faction:not(:hover) { filter: brightness(0.7) saturate(0.8); }

/* ---- In-game panel, narrow screens, reduced motion ------------------------------------- */

html.embedded .acc-art { display: none; }
html.embedded .acc-stage { min-height: calc(100vh - 38px); }
html.embedded .acc-choose-head { margin-bottom: 16px; }
html.embedded .acc-faction { height: clamp(380px, calc(100vh - 250px), 540px); }

@media (max-width: 1360px) { .acc-art { opacity: 0.5; } }
@media (max-width: 1100px) { .acc-art { display: none; } }
@media (max-width: 820px) {
    .acc-factions { grid-template-columns: 1fr; }
    .acc-faction { height: 340px; }
    .acc-faction-card > .acc-faction-art { object-position: center 18%; }
}
@media (max-width: 520px) {
    .acc-card { padding: 18px 18px 16px; }
    .acc-steps li + li::before { width: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .acc-faction, .acc-faction-card > .acc-faction-art, .acc-faction-cta svg { transition: none; }
    .acc-faction:hover, .acc-faction:focus-visible { transform: none; }
    .acc-faction:hover .acc-faction-art { transform: none; }
}
