@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap");

/* =====================================================
   GENEL AYARLAR
===================================================== */

:root {
    --auth-bg: #fbfaf8;
    --auth-white: #ffffff;

    --auth-soft: #f5f2ee;
    --auth-soft-2: #eee9e3;

    --auth-text: #756f69;
    --auth-text-dark: #2f2b28;
    --auth-muted: #a39b94;

    --auth-border: #e8e2dc;

    --auth-accent: #9a8474;
    --auth-accent-dark: #746052;
    --auth-accent-light: #d7cbc1;

    --auth-danger: #b85f63;
    --auth-danger-dark: #96484c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--auth-bg);
    color: var(--auth-text-dark);

    font-family: "Montserrat", sans-serif;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* =====================================================
   SAYFA
===================================================== */

.auth-page {
    position: relative;

    min-height: calc(100vh - 82px);

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 82px;
    padding: 58px 20px 85px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 18%,
            rgba(154, 132, 116, 0.08),
            transparent 34%
        ),
        radial-gradient(
            circle at 82% 82%,
            rgba(215, 203, 193, 0.18),
            transparent 38%
        ),
        var(--auth-bg);
}

.auth-page::before {
    content: "";

    position: absolute;
    top: 8%;
    left: 8%;

    width: 170px;
    height: 170px;

    border: 1px solid rgba(154, 132, 116, 0.1);
    border-radius: 50%;
}

.auth-page::after {
    content: "";

    position: absolute;
    right: 7%;
    bottom: 10%;

    width: 230px;
    height: 230px;

    border: 1px solid rgba(154, 132, 116, 0.08);
    border-radius: 50%;
}

/* =====================================================
   KART
===================================================== */

.auth-card {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 490px;

    padding: 42px 36px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid var(--auth-border);
    border-radius: 6px;

    box-shadow:
        0 22px 60px rgba(47, 43, 40, 0.09),
        0 2px 8px rgba(47, 43, 40, 0.035);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.auth-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--auth-accent-light),
            var(--auth-accent-dark),
            var(--auth-accent-light)
        );
}

/* =====================================================
   BAŞLIK
===================================================== */

.auth-title {
    margin: 0 0 11px;

    color: var(--auth-text-dark);

    text-align: center;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.auth-subtitle {
    max-width: 360px;

    margin: 0 auto 31px;

    color: var(--auth-muted);

    text-align: center;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.8;
}

/* =====================================================
   TABLAR
===================================================== */

.auth-tabs {
    position: relative;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    margin-bottom: 34px;
    padding: 4px;

    background: var(--auth-soft);

    border: 1px solid var(--auth-border);
    border-radius: 4px;
}

.auth-tab {
    min-height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--auth-text);

    background: transparent;

    border-radius: 2px;

    text-decoration: none;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.7px;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.auth-tab:hover {
    color: var(--auth-accent-dark);
}

.auth-tab.active {
    color: var(--auth-white);
    background: var(--auth-accent-dark);

    box-shadow: 0 6px 18px rgba(47, 43, 40, 0.1);
}

/* =====================================================
   FORM
===================================================== */

.auth-card form {
    width: 100%;
}

.form-group {
    margin-bottom: 18px;

    text-align: left;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--auth-text-dark);

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.65px;

    text-transform: uppercase;
}

/* =====================================================
   INPUTLAR
===================================================== */

.form-control {
    width: 100%;
    height: 52px;

    padding: 0 15px;

    color: var(--auth-text-dark);
    background: var(--auth-white);

    border: 1px solid var(--auth-border);
    border-radius: 3px;
    outline: none;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 400;

    box-shadow: none;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

textarea.form-control {
    min-height: 120px;
    height: auto;

    padding-top: 14px;
    padding-bottom: 14px;

    resize: vertical;
}

.form-control::placeholder {
    color: var(--auth-muted);

    opacity: 0.8;
}

.form-control:hover {
    border-color: var(--auth-accent-light);
}

.form-control:focus {
    color: var(--auth-text-dark);
    background: var(--auth-white);

    border-color: var(--auth-accent);

    outline: none;

    box-shadow: 0 0 0 4px rgba(154, 132, 116, 0.1);
}

/* Tarayıcı otomatik doldurma */

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--auth-text-dark);
    -webkit-box-shadow: 0 0 0 1000px var(--auth-white) inset;

    transition: background-color 9999s ease-in-out 0s;
}

/* =====================================================
   BUTON
===================================================== */

.auth-btn {
    width: 100%;
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 9px;
    padding: 12px 22px;

    color: var(--auth-white);
    background: var(--auth-accent-dark);

    border: 1px solid var(--auth-accent-dark);
    border-radius: 3px;

    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;

    text-decoration: none;
    text-transform: uppercase;

    cursor: pointer;

    box-shadow: 0 9px 24px rgba(47, 43, 40, 0.1);

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.auth-btn:hover {
    color: var(--auth-white);
    background: var(--auth-text-dark);
    border-color: var(--auth-text-dark);

    box-shadow: 0 13px 32px rgba(47, 43, 40, 0.16);

    transform: translateY(-2px);
}

.auth-btn:active {
    transform: scale(0.99);
}

.auth-btn:disabled {
    color: #d9d3cd;
    background: #f2efec;
    border-color: var(--auth-border);

    cursor: not-allowed;

    box-shadow: none;
    transform: none;
}

/* =====================================================
   ŞİFREMİ UNUTTUM
===================================================== */

.forgot-password {
    display: block;

    margin-bottom: 21px;

    color: var(--auth-text);
    text-align: right;

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.forgot-password::after {
    content: "";

    width: 0;
    height: 1px;

    display: block;

    margin: 4px 0 0 auto;

    background: var(--auth-accent-dark);

    transition: width 0.25s ease;
}

.forgot-password:hover {
    color: var(--auth-accent-dark);
}

.forgot-password:hover::after {
    width: 88px;
}

/* =====================================================
   HATALAR
===================================================== */

.text-danger {
    margin-bottom: 15px;

    color: var(--auth-danger) !important;

    font-size: 10px;
    line-height: 1.6;
}

.text-danger ul {
    margin: 0;
    padding-left: 18px;
}

.field-validation-error {
    display: block;

    margin-top: 7px;

    color: var(--auth-danger);

    font-size: 9px;
    line-height: 1.5;
}

.input-validation-error {
    border-color: var(--auth-danger) !important;

    box-shadow: 0 0 0 3px rgba(184, 95, 99, 0.1) !important;
}

.validation-summary-errors {
    margin-bottom: 18px;
    padding: 12px 14px;

    color: var(--auth-danger-dark);
    background: #fbf0f0;

    border: 1px solid #efd5d6;
    border-radius: 3px;

    font-size: 10px;
    line-height: 1.6;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 17px;
}

/* =====================================================
   İKİLİ FORM SATIRI
===================================================== */

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 15px;
}

/* =====================================================
   CHECKBOX
===================================================== */

.checkbox-group {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-top: 18px;
}

.checkbox-group input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;

    margin-top: 2px;

    accent-color: var(--auth-accent-dark);
}

.checkbox-group label {
    margin: 0;

    color: var(--auth-muted);

    font-size: 9px;
    line-height: 1.8;
}

.checkbox-group a {
    color: var(--auth-accent-dark);

    text-decoration: underline;
    text-decoration-color: var(--auth-accent-light);
    text-underline-offset: 3px;
}

.checkbox-group a:hover {
    color: var(--auth-text-dark);
}

/* =====================================================
   BENİ HATIRLA
===================================================== */

.remember-me {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 19px;

    color: var(--auth-muted);

    font-size: 10px;
}

.remember-me label {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin: 0;

    cursor: pointer;
}

.remember-me input {
    width: 16px;
    height: 16px;

    margin: 0;

    accent-color: var(--auth-accent-dark);

    cursor: pointer;
}

/* =====================================================
   FORM ALT YAZISI
===================================================== */

.auth-footer-text {
    margin-top: 22px;

    color: var(--auth-muted);

    text-align: center;

    font-size: 10px;
    line-height: 1.7;
}

.auth-footer-text a {
    color: var(--auth-accent-dark);

    font-weight: 500;

    text-decoration: none;
}

.auth-footer-text a:hover {
    color: var(--auth-text-dark);

    text-decoration: underline;
    text-decoration-color: var(--auth-accent-light);
    text-underline-offset: 3px;
}

/* =====================================================
   BAŞARI MESAJI
===================================================== */

.auth-success {
    margin-bottom: 20px;
    padding: 13px 15px;

    color: #55705d;
    background: #eef4ef;

    border: 1px solid #d8e5da;
    border-radius: 3px;

    font-size: 10px;
    line-height: 1.6;
}

/* =====================================================
   MOBİL
===================================================== */

@media (max-width: 768px) {
    .auth-page {
        min-height: calc(100vh - 68px);

        margin-top: 68px;
        padding: 38px 14px 58px;
    }

    .auth-page::before,
    .auth-page::after {
        display: none;
    }

    .auth-card {
        max-width: 460px;

        padding: 34px 24px;

        border-radius: 5px;
    }

    .auth-title {
        font-size: 27px;
    }

    .auth-tabs {
        margin-bottom: 29px;
    }

    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }
}

/* =====================================================
   KÜÇÜK TELEFONLAR
===================================================== */

@media (max-width: 390px) {
    .auth-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .auth-card {
        padding: 30px 16px;
    }

    .auth-title {
        font-size: 25px;
    }

    .auth-subtitle {
        font-size: 10px;
    }

    .auth-tab {
        font-size: 10px;
    }

    .form-control {
        height: 49px;

        font-size: 11px;
    }

    .auth-btn {
        min-height: 50px;

        font-size: 10px;
    }

    .remember-me {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;
    }
}