/* İSG Takip - Login & Register - #6A5ACD accent, mobil uyumlu */
.auth-error { color: #ef4444; font-size: 14px; margin-top: 8px; }
.auth-error.visible { display: block !important; }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --auth-accent: #6A5ACD;
    --auth-accent-hover: #5548b8;
    --auth-bg: #f5f5f7;
    --auth-panel-bg: #ffffff;
    --auth-text: #1a1a1a;
    --auth-text-muted: #6c757d;
    --auth-border: #e0e0e0;
}

body.auth-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--auth-bg);
    color: var(--auth-text);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    overflow: hidden; /* Sayfa yukarı-aşağı kaymasın */
}

.auth-container {
    display: flex;
    width: 100%;
    flex: 1;
    min-height: 0; /* Yükseklik body tarafından kontrol ediliyor */
    flex-wrap: wrap;
}

/* Sol panel - Form */
.auth-form-panel {
    flex: 1 1 auto;
    min-width: 320px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
    background: var(--auth-panel-bg);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.auth-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--auth-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.auth-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--auth-text);
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--auth-text);
}

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

/* Sosyal butonlar */
.auth-social {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: var(--auth-panel-bg);
    color: var(--auth-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-social-btn:hover {
    background: #f8f8f8;
    border-color: #ccc;
}

.auth-social-btn img {
    width: 20px;
    height: 20px;
}

/* Ayırıcı */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-divider-text {
    font-size: 13px;
    color: var(--auth-text-muted);
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form-row {
    display: none; /* Kayıtta "Google ile kayıt" seçilince gizlenir */
}

.auth-form-row.visible {
    display: block;
}

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

.auth-input-wrap .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    pointer-events: none;
    font-size: 18px;
}

.auth-input-wrap input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--auth-text);
    background: var(--auth-panel-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-wrap input::placeholder {
    color: var(--auth-text-muted);
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.12);
}

.auth-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Checkbox */
.auth-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.auth-checkbox-wrap input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--auth-accent);
    cursor: pointer;
}

.auth-checkbox-wrap span {
    font-size: 14px;
    color: var(--auth-text-muted);
}

.auth-checkbox-wrap a {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-checkbox-wrap a:hover {
    text-decoration: underline;
}

/* Ana buton - #6A5ACD */
.auth-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--auth-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.05s;
}

.auth-submit-btn:hover {
    background: var(--auth-accent-hover);
}

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

/* Google ile giriş/kayıt seçiliyse email formu gizlenir, bu buton da gizlenir */
.auth-submit-btn.hide-when-google {
    display: block;
}

.auth-form-panel.google-only .auth-form-row.email-form,
.auth-form-panel.google-only .auth-submit-btn.hide-when-google {
    display: none !important;
}

/* Alt link */
.auth-footer-link {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--auth-text-muted);
}

.auth-footer-link a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

/* Sağ panel - Görsel alan (giriş/kayıt formu ile aynı zemin: beyaz; sadece çerçeve içi medya) */
.auth-visual-panel {
    flex: 0 0 630px;
    max-width: 630px;
    min-width: 320px;
    min-height: 100vh;
    background: var(--auth-panel-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.auth-visual-panel.has-video {
    background: var(--auth-panel-bg);
}

.auth-visual-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #0f0f0f;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.auth-visual-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center;
    z-index: 0;
    display: block;
}

/* Alt marka alanı */
.auth-page-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0 16px;
}

.auth-footer-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.02);
    text-decoration: none;
}

.auth-footer-logo-wrap {
    position: relative;
    overflow: hidden;
    display: inline-flex;
}

.auth-footer-logo-wrap img {
    height: 22px;
    width: auto;
    display: block;
}

.auth-footer-logo-wrap::before {
    content: '';
    position: absolute;
    top: -130%;
    left: -30%;
    width: 60%;
    height: 260%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0)
    );
    transform: translateY(-100%) rotate(16deg);
    opacity: 0;
}

.auth-footer-logo-wrap:hover::before {
    opacity: 1;
    animation: auth-logo-shine 800ms ease-out;
}

@keyframes auth-logo-shine {
    0% {
        transform: translateY(-130%) rotate(16deg);
    }
    100% {
        transform: translateY(130%) rotate(16deg);
    }
}

.auth-visual-panel::before {
    display: none;
}

.auth-visual-content--on-video {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    pointer-events: none;
}

.auth-visual-content--on-video .auth-visual-custom {
    pointer-events: auto;
}

.auth-visual-content--plain {
    position: relative;
    z-index: 1;
    padding: 24px;
    text-align: left;
}

.auth-visual-custom {
    color: var(--auth-text);
    text-align: left;
}

.auth-visual-content--on-video .auth-visual-custom {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.auth-visual-content--on-video .auth-visual-custom h1,
.auth-visual-content--on-video .auth-visual-custom h2,
.auth-visual-content--on-video .auth-visual-custom h3 {
    color: #fff;
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
}

.auth-visual-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
}

.auth-visual-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

/* Dekoratif öğeler */
.auth-visual-decor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.auth-visual-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-size: 24px;
}

.auth-visual-dots {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.auth-visual-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}

.auth-visual-dots span.active {
    background: white;
    transform: scale(1.2);
}

/* Mobil */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-form-panel {
        min-height: auto;
        padding: 32px 24px 40px;
        order: 1;
    }

    .auth-visual-panel {
        min-height: 280px;
        padding: 32px 24px;
        order: 0;
    }

    .auth-visual-title {
        font-size: 22px;
    }

    .auth-visual-subtitle {
        font-size: 14px;
    }

    .auth-social {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .auth-form-panel {
        padding: 24px 20px 32px;
    }

    .auth-visual-panel {
        min-height: 220px;
        padding: 24px 20px;
    }

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

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