﻿:root {
    --primary: #2f2483;
    --primary-hover: #261d70;
    --primary-soft: #eae8f3;
    --background: #2f2483;
    --surface: #ffffff;
    --surface-soft: #ffffff;
    --text: #1b1c1c;
    --text-secondary: #65636d;
    --text-muted: #7b7984;
    --border: #d5d2dd;
    --border-light: #e6e4ea;
    --error: #b42318;
    --error-background: #fef3f2;
    --success: #027a48;
    --success-background: #ecfdf3;
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    font-size: 14px;
    line-height: 1.45;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}


/* PAGE */

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}


/* WRAPPER */

.auth-shell {
    width: 100%;
    max-width: 880px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03), 0 4px 12px rgba(16, 24, 40, 0.04);
}


/* BRAND */

.auth-brand {
    background: var(--surface-soft);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 28px;
}

.auth-brand-inner {
    width: 100%;
    text-align: center;
}

.auth-logo {
    display: block;
    width: 100%;
    max-width: 190px;
    max-height: 100px;
    object-fit: contain;
    margin: 0 auto;
}

.auth-brand-copy {
    margin-top: 28px;
}

    .auth-brand-copy h1 {
        margin: 0;
        color: var(--primary);
        font-size: 23px;
        line-height: 30px;
        font-weight: 700;
    }

    .auth-brand-copy p {
        max-width: 190px;
        margin: 7px auto 0;
        color: var(--text-secondary);
        font-size: 13px;
        line-height: 19px;
    }


/* CONTENT */

.auth-content {
    min-width: 0;
    padding: 30px 34px 34px;
}


/* TABS */

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 26px;
}

.auth-tab {
    position: relative;
    flex: 1;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    padding: 11px 16px 13px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    transition: color 0.15s ease, background-color 0.15s ease;
}

    .auth-tab::after {
        position: absolute;
        content: "";
        left: 0;
        right: 0;
        bottom: -1px;
        height: 2px;
        background: transparent;
    }

    .auth-tab:hover {
        background: #faf9fc;
        color: var(--text);
    }

    .auth-tab.active {
        color: var(--primary);
    }

        .auth-tab.active::after {
            background: var(--primary);
        }


/* TAB CONTENT */

.auth-tab-content {
    display: none;
}

    .auth-tab-content.active {
        display: block;
    }


/* HEADING */

.auth-heading {
    margin-bottom: 22px;
}

    .auth-heading h2 {
        margin: 0;
        font-size: 20px;
        line-height: 28px;
        font-weight: 650;
        color: var(--text);
    }

    .auth-heading p {
        margin: 5px 0 0;
        font-size: 13px;
        line-height: 19px;
        color: var(--text-secondary);
    }


/* FORM */

.auth-form,
.register-form {
    width: 100%;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}


/* GROUP */

.form-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group label {
        color: var(--text-secondary);
        font-size: 12px;
        line-height: 16px;
        font-weight: 600;
        letter-spacing: 0.01em;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        border: 1px solid #cbc8d1;
        border-radius: var(--radius-sm);
        background: var(--surface);
        color: var(--text);
        font-size: 14px;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .form-group input,
    .form-group select {
        min-height: 40px;
        padding: 8px 11px;
    }

    .form-group textarea {
        min-height: 82px;
        padding: 9px 11px;
        resize: vertical;
    }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: #a09da7;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(47, 36, 131, 0.09);
        }


/* ICON INPUT */

.input-with-icon {
    position: relative;
}

    .input-with-icon > input {
        padding-left: 39px;
        padding-right: 42px;
    }

.input-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #85828c;
    font-size: 20px;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #77747f;
}

    .password-toggle:hover {
        background: var(--surface-soft);
    }

    .password-toggle .material-symbols-outlined {
        font-size: 19px;
    }


/* LOGIN OPTIONS */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: -1px;
}

.check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text);
    font-size: 13px;
    line-height: 18px;
}

.check-label-start {
    align-items: flex-start;
}

.check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 1px 0 0;
    accent-color: var(--primary);
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

    .forgot-link:hover {
        text-decoration: underline;
    }


/* BUTTON */

.primary-button {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    padding: 9px 16px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .primary-button:hover {
        background: var(--primary-hover);
        border-color: var(--primary-hover);
    }


/* SUPPORT */

.auth-support {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 18px;
}

    .auth-support .material-symbols-outlined {
        flex: 0 0 auto;
        margin-top: 1px;
        font-size: 17px;
    }


/* REGISTER SECTIONS */

.form-section {
    margin: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 9px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

    .form-section-title .material-symbols-outlined {
        color: var(--primary);
        font-size: 19px;
    }

    .form-section-title h3 {
        margin: 0;
        color: var(--text);
        font-size: 15px;
        line-height: 20px;
        font-weight: 650;
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.form-group-full {
    grid-column: 1 / -1;
}


/* KVKK */

.kvkk-area {
    padding: 12px 13px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: #faf9fc;
}

    .kvkk-area .check-label {
        color: var(--text-secondary);
        font-size: 12px;
        line-height: 18px;
    }


/* VALIDATION */

.validation-summary {
    display: none;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #fecdca;
    border-radius: var(--radius-sm);
    background: var(--error-background);
    color: var(--error);
    font-size: 13px;
}

    .validation-summary.validation-summary-errors {
        display: block;
    }

    .validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

.field-validation {
    min-height: 0;
    color: var(--error);
    font-size: 11px;
    line-height: 15px;
}

    .field-validation:empty {
        display: none;
    }

.input-validation-error {
    border-color: #f04438 !important;
}


/* SUCCESS */

.success-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 12px;
    margin-bottom: 18px;
    border: 1px solid #abefc6;
    border-radius: var(--radius-sm);
    background: var(--success-background);
    color: var(--success);
    font-size: 13px;
    line-height: 19px;
}

    .success-message .material-symbols-outlined {
        flex: 0 0 auto;
        font-size: 19px;
    }


/* REGISTER SCROLL */

#content-register {
    max-height: min(680px, calc(100vh - 110px));
    overflow-y: auto;
    padding-right: 6px;
}

    #content-register::-webkit-scrollbar {
        width: 6px;
    }

    #content-register::-webkit-scrollbar-track {
        background: transparent;
    }

    #content-register::-webkit-scrollbar-thumb {
        background: #d1ced7;
        border-radius: 10px;
    }


/* TABLET */

@media (max-width: 900px) {

    .auth-page {
        padding: 18px;
        align-items: flex-start;
    }

    .auth-shell {
        max-width: 720px;
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .auth-brand {
        padding: 32px 20px;
    }

    .auth-content {
        padding: 27px 26px 30px;
    }
}


/* MOBILE */

@media (max-width: 680px) {

    .auth-page {
        display: block;
        padding: 12px;
        background: #f5f5f7;
    }

    .auth-shell {
        display: block;
        max-width: none;
        border-radius: 6px;
    }

    .auth-brand {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding: 24px 20px 20px;
    }

    .auth-logo {
        max-width: 160px;
        max-height: 72px;
    }

    .auth-brand-copy {
        margin-top: 16px;
    }

        .auth-brand-copy h1 {
            font-size: 19px;
            line-height: 25px;
        }

        .auth-brand-copy p {
            max-width: none;
            margin-top: 4px;
        }

    .auth-content {
        padding: 20px 18px 24px;
    }

    .auth-tabs {
        margin-bottom: 22px;
    }

    .auth-tab {
        padding: 10px 8px 12px;
        font-size: 15px;
    }

    .auth-heading h2 {
        font-size: 18px;
        line-height: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-group-full {
        grid-column: auto;
    }

    #content-register {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}


/* VERY SMALL MOBILE */

@media (max-width: 420px) {

    .auth-page {
        padding: 0;
    }

    .auth-shell {
        min-height: 100vh;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .auth-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
