/* HiGuys — Auth sayfaları (sign-in, sign-up, verify-code, reset-password, verify-email) */
/* app.css'ten ayrıldı. Bu sayfalar app.css (taban: token/reset/toast/verification-code) + auth.css yükler. */

.auth-body {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: #0a0a0a;
    color: #fff;
    display: block;
}

.auth-shell {
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.auth-left {
    width: 55%;
    height: 100vh;
    background: linear-gradient(135deg, #0f1923 0%, #1a1035 50%, #0a0a0a 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 48px 56px;
}

.auth-right {
    position: relative;
    width: 45%;
    height: 100vh;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
}

.auth-brand {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.auth-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    padding: 5px;
    border: 1px rgba(var(--primary-rgb), .5) solid;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.auth-copy {
    margin-top: auto;
    margin-bottom: auto;
    max-width: 520px;
}

.auth-copy h1 {
    color: #fff;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
}

.auth-copy h1 span {
    color: var(--primary);
}

.auth-copy>p {
    color: rgba(255, 255, 255, 0.72);
    margin-top: 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    font-size: 19px;
}

.auth-feature-icon.is-primary {
    background: rgba(255, 151, 96, 0.15);
    color: var(--primary);
}

.auth-feature-icon.is-link {
    background: rgba(0, 136, 255, 0.15);
    color: #0088FF;
}

.auth-feature-icon.is-success {
    background: rgba(39, 200, 64, 0.15);
    color: #27C840;
}

.auth-feature strong {
    color: #fff;
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.auth-feature p {
    color: rgba(255, 255, 255, 0.72);
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.auth-copyright {
    color: rgba(255, 255, 255, 0.72);
    margin-top: auto;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.auth-back-link {
    position: absolute;
    top: 24px;
    right: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-back-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.auth-card {
    width: 100%;
    max-width: 360px;
}

.auth-form-icon {
    width: 52px;
    height: 52px;
    border: 0.5px solid rgba(255, 151, 96, 0.2);
    border-radius: 14px;
    background: rgba(255, 151, 96, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.auth-card h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.72);
    margin-top: 4px;
    margin-bottom: 28px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.auth-message {
    border: 0.5px solid rgba(var(--danger-rgb), 0.28);
    border-radius: 9px;
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
    margin: -12px 0 18px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.auth-message[data-type="success"] {
    border-color: rgba(var(--succuss-rgb), 0.28);
    background: rgba(var(--succuss-rgb), 0.1);
    color: var(--succuss);
}

.auth-google-button-container {
    display: grid;
    justify-items: center;
    width: 100%;
    margin-bottom: 2px;
}

.auth-google-button-slot {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 44px;
}

.auth-google-button-slot iframe {
    max-width: 100%;
}

.auth-google-prompt-host {
    width: 100%;
    margin: 0 0 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.auth-google-prompt-host[data-type="error"] {
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

.auth-google-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.auth-google-button {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.auth-google-button:hover {
    background: rgba(255, 255, 255, 0.92);
}

.auth-google-word {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-google-word span:nth-child(1),
.auth-google-word span:nth-child(4) {
    color: #4285F4;
}

.auth-google-word span:nth-child(2),
.auth-google-word span:nth-child(6) {
    color: #EA4335;
}

.auth-google-word span:nth-child(3) {
    color: #FBBC05;
}

.auth-google-word span:nth-child(5) {
    color: #34A853;
}

.auth-divider {
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    flex: 1;
}

.auth-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-name-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-field {
    min-width: 0;
}

.auth-field label {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.auth-field input {
    width: 100%;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    padding: 10px 14px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.auth-field input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.auth-forgot-link {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-align: right;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: var(--primary);
}

.auth-remember {
    color: rgba(255, 255, 255, 0.72);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    user-select: none;
}

.auth-remember input {
    position: relative;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    background: #1b1b1b;
    cursor: pointer;
    flex: 0 0 18px;
    margin: 0;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-remember input::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(0.82);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth-remember input:checked {
    border-color: rgba(var(--primary-rgb), 0.88);
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.13);
}

.auth-remember input:checked::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.auth-remember input:focus-visible {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.9);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
}

.auth-remember:hover {
    color: rgba(255, 255, 255, 0.78);
}

.auth-prefixed-input {
    position: relative;
}

.auth-prefixed-input span {
    position: absolute;
    top: 50%;
    left: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-prefixed-input input {
    padding-left: 28px;
}

.auth-submit {
    width: 100%;
    border: 1px solid rgba(255, 139, 84, .48);
    background: linear-gradient(135deg, var(--primary), #d94b18);
    box-shadow: 0 0 0 1px #ff8b5424 inset;
    border-radius: 9px;
    color: var(--primary-contrast);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    margin-top: 20px;
    padding: 11px;
    transition: all 0.2s ease;
}

.auth-submit:hover {
    opacity: 0.88;
    border: 0.5px solid rgba(var(--primary-rgb), 0.5176);

}

.auth-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.auth-terms {
    color: rgba(255, 255, 255, 0.72);
    margin-top: 12px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

/* Bot tuzagi (honeypot) — gercek kullanicilar gormez/dolduramaz */
.auth-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.auth-terms a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: underline;
}

.auth-bottom-link {
    color: rgba(255, 255, 255, 0.72);
    margin-top: 20px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.auth-bottom-link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-verification {
    margin-top: 16px;
}

.auth-verification-text {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}


/* Responsive: auth-name-grid (app.css paylaşılan @media'sından taşındı) */
@media (max-width: 768px) {
    .auth-name-grid { grid-template-columns: 1fr; }
}

/* Auth V2 */
.auth-body {
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 72% 18%, rgba(var(--primary-rgb), 0.1), transparent 30%),
        #0b0b0b;
    color: #fff;
}

.auth-floating-back {
    position: fixed;
    top: 42px;
    left: 38px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.auth-page-sign-in .auth-floating-back,
.auth-page-verify .auth-floating-back {
    right: 38px;
    left: auto;
}

.auth-floating-back:hover {
    color: #fff;
}

.auth-floating-back svg {
    width: 20px;
    height: 20px;
}

.auth-shell {
    min-height: 100vh;
    height: auto;
    display: grid;
    grid-template-columns: minmax(410px, 0.56fr) minmax(520px, 0.9fr);
    gap: clamp(42px, 5vw, 96px);
    align-items: center;
    padding: clamp(18px, 1.6vw, 26px) clamp(18px, 2.2vw, 38px);
    overflow: visible;
}

.auth-shell--reverse {
    grid-template-columns: minmax(520px, 0.72fr) minmax(410px, 0.72fr);
}

.auth-shell--reverse .auth-showcase {
    order: 1;
}

.auth-shell--reverse .auth-form-pane {
    order: 2;
}

.auth-shell:not(.auth-shell--reverse) .auth-showcase {
    justify-self: end;
}

.auth-showcase {
    position: relative;
    width: min(100%, 760px);
    min-height: 620px;
    height: calc(100vh - clamp(36px, 3.2vw, 52px));
    justify-self: start;
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: 44px;
    background:
        radial-gradient(circle at 78% 18%, rgba(var(--primary-rgb), 0.12), transparent 34%),
        radial-gradient(circle at 18% 86%, rgba(var(--primary-rgb), 0.07), transparent 34%),
        linear-gradient(145deg, #160905 0%, #2a0d05 44%, #060606 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 3vw, 48px);
    overflow: hidden;
}

.auth-showcase::before {
    content: none;
}

.auth-showcase-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #fff;
    font-size: 24px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
}

.auth-showcase-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.auth-showcase-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin-top: auto;
    margin-bottom: auto;
}

.auth-showcase-copy--right {
    align-self: flex-end;
    text-align: right;
}

.auth-showcase-copy h1 {
    color: #fff;
    font-size: clamp(34px, 3.4vw, 58px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: 0;
}

.auth-showcase-copy h1 span {
    color: var(--primary);
}

.auth-showcase-copy p {
    color: rgba(255, 255, 255, 0.68);
    margin-top: 12px;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 500;
    line-height: 1.45;
}

.auth-copyright {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.56);
    margin-top: auto;
    font-size: 12px;
}

.auth-form-pane {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(100%, 430px);
    max-width: none;
}

.auth-page-sign-up .auth-card {
    width: min(100%, 460px);
}

.auth-form-icon {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(var(--primary-rgb), 0.5);
    border-radius: 14px;
    background: rgba(var(--primary-rgb), 0.11);
    color: var(--primary);
    margin: 0 auto 16px;
}

.auth-form-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.auth-card h2 {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 0;
}

.auth-subtitle {
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.74);
}

.auth-google-button-container {
    margin-bottom: 0;
}

.auth-google-button-slot {
    min-height: 44px;
}

.auth-google-fallback {
    min-height: 44px;
    border-radius: 6px;
    background: #f7f7f7;
    color: #222;
}

.auth-divider {
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.78);
}

.auth-divider::before,
.auth-divider::after {
    background: rgba(255, 255, 255, 0.36);
}

.auth-divider--more {
    margin: 50px 0 26px;
}

.auth-fields {
    gap: 11px;
}

.auth-field label {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
}

.auth-field input,
.auth-prefixed-input {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #1b1b1b;
    color: #fff;
}

.auth-field input {
    border-width: 0;
    background: transparent;
    padding: 12px 14px;
}

.auth-field>input {
    border-width: 1px;
    background: #1b1b1b;
}

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-field input:focus,
.auth-prefixed-input:focus-within,
.auth-password-wrap:focus-within {
    border-color: rgba(var(--primary-rgb), 0.75);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.auth-password-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #1b1b1b;
}

.auth-password-wrap button {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-password-wrap button svg {
    width: 18px;
    height: 18px;
}

.auth-prefixed-input span {
    left: 14px;
}

.auth-prefixed-input input {
    padding-left: 34px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.auth-remember {
    margin-top: 0;
}

.auth-terms-check input {
    accent-color: var(--primary);
}

.auth-forgot-link {
    margin-top: 0;
}

.auth-submit {
    min-height: 46px;
    border-radius: 8px;
    margin-top: 18px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
}

.auth-submit svg {
    width: 22px;
    height: 22px;
}

.auth-submit--muted {
    background: rgba(255, 255, 255, 0.32);
    color: #fff;
    margin-top: 12px;
}

.auth-alt-action {
    min-height: 46px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .48);
    background: linear-gradient(135deg, var(--background), #dad7d6);
    box-shadow: 0 0 0 1px #ffffff24 inset;
    color: #080808;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.auth-alt-action svg {
    width: 22px;
    height: 22px;
}

.auth-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.auth-terms-check a {
    color: var(--primary);
}

.auth-message {
    margin: -8px 0 18px;
}

.auth-card--verify {
    width: min(100%, 500px);
}

.auth-card--verify .auth-subtitle {
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
}

.auth-card--verify .auth-verification-text {
    margin: 44px 0 26px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.verification-code-grid--large {
    gap: 12px;
}

.verification-code-grid--large .verification-code-input {
    border-radius: 12px;
    font-size: 26px;
    background: #1b1b1b;
}

@media (max-width: 1180px) {

    .auth-shell,
    .auth-shell--reverse {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 84px;
    }

    .auth-shell--reverse .auth-showcase,
    .auth-shell--reverse .auth-form-pane {
        order: initial;
    }

    .auth-showcase {
        min-height: 320px;
        height: auto;
        border-radius: 28px;
    }

    .auth-showcase-copy,
    .auth-showcase-copy--right {
        align-self: flex-start;
        text-align: left;
        margin-top: 72px;
    }
}

@media (max-width: 720px) {
    .auth-floating-back {
        top: 20px;
        left: 18px;
        right: auto;
    }

    .auth-page-sign-in .auth-floating-back,
    .auth-page-verify .auth-floating-back {
        right: 18px;
        left: auto;
    }

    .auth-shell,
    .auth-shell--reverse {
        padding: 74px 18px 28px;
    }

    .auth-showcase {
        display: none;
    }

    .auth-card,
    .auth-page-sign-up .auth-card,
    .auth-card--verify {
        width: 100%;
    }

    .auth-name-grid,
    .auth-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .auth-forgot-link {
        text-align: left;
    }

    .verification-code-grid--large {
        gap: 8px;
    }
}
