﻿:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
}

/* BODY */
body.auth-body {
    font-family: 'Inter', sans-serif;
    background: #f1f5f9;
    margin: 0;
}

/* LAYOUT */
.auth-container {
    display: flex;
    min-height: 100vh;
}

/* LEFT SIDE */
.auth-left {
    flex: 1;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

    .auth-left img {
        max-width: 80%;
    }

/* RIGHT SIDE */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
}

.auth-box {
    width: 100%;
    max-width: 420px;
}

/* LOGO */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
    color: #1e293b;
    text-align: left;
}

.auth-logo-mark {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    border: 1px solid #dbe4ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.16);
    flex-shrink: 0;
}

    .auth-logo-mark svg {
        display: block;
        width: 20px;
        height: 20px;
    }

.auth-logo-text {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1e293b;
    line-height: 1;
}

.auth-logo-accent {
    color: #6366f1;
}

.auth-google-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* TITLE */
.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* INPUT */
.modern-input {
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 10px 14px;
    font-size: 14px;
}

    .modern-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
    }

/* PASSWORD */
.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        padding-right: 45px;
    }

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toggle-password:hover {
        color: var(--primary);
    }

/* CHECKBOX ROW */
.auth-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 20px;
}

/* PRIMARY BUTTON */
.btn-auth-primary {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-auth-primary:hover {
        opacity: 0.9;
    }

/* DIVIDER */
.auth-divider {
    text-align: center;
    margin: 18px 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* GOOGLE */
.btn-google {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    color: #1e293b !important; /* 🔥 Yazıyı siyah yap */
    font-weight: 500;
    text-decoration: none;
}

    .btn-google:hover {
        background: #f8fafc;
        color: #1e293b !important; /* Hover'da da siyah kalsın */
    }


    .btn-google img {
        width: 18px;
    }

    .btn-google:hover {
        background: #f8fafc;
    }

/* REGISTER */
.auth-register {
    margin-top: 26px;
    font-size: 14px;
    text-align: center;
    color: var(--text-muted);
}

    .auth-register a {
        color: var(--primary);
        font-weight: 600;
        text-decoration: none;
        margin-left: 6px;
        transition: 0.2s;
    }

        .auth-register a:hover {
            text-decoration: underline;
            color: var(--primary-dark);
        }

/* MOBILE */
@media (max-width: 992px) {
    .auth-left {
        display: none !important;
    }

    .auth-right {
        padding: 20px;
    }
}

.btn-auth-primary {
    position: relative;
    gap: 8px;
}

    .btn-auth-primary .spinner-border {
        width: 18px;
        height: 18px;
        border-width: 2px;
    }

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}

.auth-divider {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    margin: 18px 0;
    position: relative;
}

    .auth-divider::before,
    .auth-divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 40%;
        height: 1px;
        background: #e2e8f0;
    }

    .auth-divider::before {
        left: 0;
    }

    .auth-divider::after {
        right: 0;
    }


/* CENTER LAYOUT */
.auth-container.single-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-center-box {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* MOBILE OPTIMIZATION */
@media (max-width: 576px) {

    .auth-center-box {
        max-width: 100%;
        margin: 20px;
        padding: 28px 22px;
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    }

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

    .auth-subtitle {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .modern-input {
        height: 42px;
        font-size: 14px;
    }

    .btn-auth-primary {
        height: 46px;
    }
}

@media (max-width: 576px) {

    .auth-center-box {
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}


/* INPUT ERROR STYLE */
.modern-input.input-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239,68,68,0.15);
}

.input-error {
    font-size: 13px;
    color: #ef4444;
    margin-top: 6px;
    display: none;
}

.login-global-error {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #fdecea;
    border: 1px solid #f5c2c0;
    border-left: 5px solid #d93025;
    color: #b42318;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

    .login-global-error .error-icon {
        font-size: 20px;
        display: flex;
        align-items: center;
    }
.login-global-success {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #e6f4ea;
    border: 1px solid #b7e1c1;
    border-left: 5px solid #1e7e34;
    color: #1e7e34;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.auth-footer {
    font-size: 14px;
    color: #6c757d;
    margin-top: 18px;
    margin-bottom: 22px;
}

.footer-link {
    margin-left: 6px;
    font-weight: 600;
    text-decoration: none;
    color: #4f46e5;
    transition: 0.2s;
}

    .footer-link:hover {
        text-decoration: underline;
        color: #3730a3;
    }

.btn-google-dark {
    width: 100%;
    height: 48px; /* primary ile aynı */
    border-radius: 12px; /* primary ile aynı */
    border: none;
    background-color: #111827;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    transition: 0.25s ease;
}

    .btn-google-dark img {
        width: 20px;
        height: 20px;
    }

    .btn-google-dark:hover {
        background-color: #000000;
    }

.password-rules small {
    color: #64748b;
    font-size: 13px;
}

/*confirm email*/

.confirm-box {
    padding: 40px 30px;
}

.confirm-icon {
    font-size: 70px;
    margin-bottom: 20px;
}

    .confirm-icon.success {
        color: #22c55e;
    }

    .confirm-icon.error {
        color: #ef4444;
    }

.confirm-title {
    font-weight: 600;
    font-size: 26px;
    margin-bottom: 10px;
}

.confirm-text {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/*google login*/

/* Google butonunu kendi tasarımının üstüne "tıklanabilir" overlay olarak koyuyoruz */
.google-btn-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 48px;
    min-height: 48px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
    z-index: 1;
}

.google-btn-ui {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
    border-radius: 12px;
    margin: 0 auto;
}

.gsi-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.001;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gsi-overlay .gsi-host {
        width: 100% !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .gsi-overlay iframe,
    .gsi-overlay > div {
        width: 100% !important;
        min-width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        display: block !important;
        border-radius: 12px !important;
    }

.auth-register-safe {
    position: relative;
    z-index: 5;
    margin-top: 24px;
}

@media (max-width: 576px) {
    .auth-logo-mark {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .auth-logo-text {
        font-size: 17px;
    }

    .google-btn-wrapper,
    .google-btn-ui {
        height: 46px;
        min-height: 46px;
    }

    .gsi-overlay .gsi-host,
    .gsi-overlay iframe,
    .gsi-overlay > div {
        height: 46px !important;
        min-height: 46px !important;
    }

    .auth-register-safe {
        margin-top: 22px;
    }
}