﻿:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #111827; /* gray-900 */
    --muted: #6b7280; /* gray-500 */
    --border: #e5e7eb; /* gray-200 */
    --shadow: 0 20px 45px rgba(17,24,39,.08);
    --primary: #2563eb; /* blue-600 */
    --primary2: #1d4ed8; /* blue-700 */
    --primaryRing: rgba(37,99,235,.18);
    --radius: 16px;
    --radiusSm: 12px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
}

.auth-h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -.3px;
}

.auth-toprow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

    .auth-toprow .sub {
        margin-top: 6px;
        color: var(--muted);
        font-size: 13.5px;
    }

.auth-toplink {
    font-size: 13.5px;
    color: var(--muted);
    white-space: nowrap;
}

    .auth-toplink a {
        color: var(--text);
        font-weight: 700;
        text-decoration: none;
    }

        .auth-toplink a:hover {
            text-decoration: underline;
        }

.auth-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.btn {
    height: 44px;
    border-radius: var(--radiusSm);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .15s ease, border-color .15s ease;
}

    .btn:active {
        transform: translateY(1px);
    }

    .btn:hover {
        border-color: #d1d5db;
        box-shadow: 0 10px 25px rgba(17,24,39,.06);
    }

    .btn.disabled,
    .btn:disabled {
        opacity: .55;
        cursor: not-allowed;
        box-shadow: none !important;
    }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

    .divider::before,
    .divider::after {
        content: "";
        height: 1px;
        background: var(--border);
        flex: 1;
    }

.field {
    margin-top: 12px;
}

.labelrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

    .labelrow label {
        font-size: 13px;
        font-weight: 700;
        color: #374151;
    }

.link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

    .link:hover {
        text-decoration: underline;
    }

.input {
    width: 100%;
    height: 44px;
    border-radius: var(--radiusSm);
    border: 1px solid var(--border);
    padding: 0 12px;
    outline: none;
    font-size: 14px;
    transition: box-shadow .12s ease, border-color .12s ease;
}

    .input:focus {
        border-color: rgba(37,99,235,.55);
        box-shadow: 0 0 0 4px var(--primaryRing);
    }

    .input::placeholder {
        color: #9ca3af;
    }

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #374151;
}

    .checkbox input {
        accent-color: var(--primary);
    }

.btn-primary {
    width: 100%;
    height: 46px;
    border-radius: var(--radiusSm);
    border: 0;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 14.5px;
    margin-top: 16px;
    cursor: pointer;
    transition: background .15s ease, transform .06s ease;
}

    .btn-primary:hover {
        background: var(--primary2);
    }

    .btn-primary:active {
        transform: translateY(1px);
    }

    .btn-primary:disabled {
        opacity: .7;
        cursor: not-allowed;
    }

.alert {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(239,68,68,.25);
    background: rgba(239,68,68,.07);
    color: #991b1b;
    font-size: 13px;
}

.ok {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(16,185,129,.25);
    background: rgba(16,185,129,.08);
    color: #065f46;
    font-size: 13px;
}

.val {
    display: block;
    margin-top: 8px;
    color: #b91c1c;
    font-size: 12.5px;
}

.foot {
    margin-top: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 12.5px;
}

@media (max-width: 520px) {
    .auth-social {
        grid-template-columns: 1fr;
    }
}
/* password toggle */
.pw-wrap {
    position: relative;
}

    .pw-wrap .input {
        padding-right: 46px; /* göz butonu için boşluk */
    }

.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

    .pw-toggle:hover {
        border-color: #d1d5db;
        box-shadow: 0 10px 20px rgba(17,24,39,.06);
        color: #374151;
    }

    .pw-toggle svg {
        width: 18px;
        height: 18px;
    }