/* ===========================================================
   GİRİŞ / QEYDİYYAT — tam ekran, 2-yə bölünmüş səhifə
   =========================================================== */
.auth-body {
    margin: 0;
    font-family: var(--font, 'Inter', sans-serif);
    background: #fff;
}
.auth-split {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ---- SOL: vizual / şəkil ---- */
.auth-visual {
    flex: 1 1 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    color: #fff;
    overflow: hidden;
    /* Öz şəklinizi qoymaq üçün: uploads/auth-side.jpg faylını əlavə edin.
       Fayl yoxdursa aşağıdakı qradiyent görünür. */
    background:
        linear-gradient(135deg, rgba(27,67,50,.82), rgba(45,106,79,.78)),
        url('uploads/auth-side.jpg') center / cover no-repeat,
        linear-gradient(135deg, #1b4332, #2d6a4f);
}
.auth-visual-logo {
    display: inline-flex; align-items: center;
    font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -.03em;
    z-index: 1;
}
.auth-visual-logo span { color: #95d5b2; }
.auth-visual-logo img { max-height: 42px; filter: brightness(0) invert(1); }
.auth-visual-text { z-index: 1; max-width: 460px; }
.auth-visual-text h2 { font-size: 2rem; line-height: 1.25; margin: 0 0 14px; font-weight: 700; }
.auth-visual-text p { font-size: 1rem; line-height: 1.6; opacity: .9; margin: 0; }

/* ---- SAĞ: form paneli ---- */
.auth-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    overflow-y: auto;             /* register uzun olsa belə səhifə scroll olmasın */
}
.auth-form-wrap {
    width: 100%;
    max-width: 380px;
}
.auth-mobile-logo {
    display: none;
    font-size: 1.5rem; font-weight: 800; color: var(--dark-900, #1a1a1a);
    margin-bottom: 24px; letter-spacing: -.03em;
}
.auth-mobile-logo span { color: var(--green-600, #2d9d63); }
.auth-mobile-logo img { max-height: 40px; }

.auth-tabs {
    display: flex; gap: 6px; margin-bottom: 16px;
    background: var(--gray-100, #f1f3f5); border-radius: 12px; padding: 5px;
}
.auth-tab {
    flex: 1; padding: 11px; border: none; cursor: pointer;
    background: none; border-radius: 9px; font-family: inherit;
    font-size: .92rem; font-weight: 600; color: #777; transition: all .2s;
}
.auth-tab.active { background: #fff; color: var(--green-700, #1b6e45); box-shadow: 0 2px 8px rgba(0,0,0,.07); }

.auth-title { font-size: 1.55rem; font-weight: 700; margin: 0 0 16px; color: var(--dark-900, #1a1a1a); }

.auth-error {
    background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6;
    padding: 11px 14px; border-radius: 10px; font-size: .85rem; margin-bottom: 18px;
}

/* Google düyməsi */
.google-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px; margin-bottom: 14px;
    border: 1px solid var(--gray-200, #e3e6ea); border-radius: 11px;
    background: #fff; color: #3c4043; font-size: .92rem; font-weight: 600;
    transition: all .2s;
}
.google-btn:hover { background: #f8f9fa; border-color: #d0d4d9; box-shadow: 0 2px 8px rgba(0,0,0,.05); }

.auth-divider {
    display: flex; align-items: center; text-align: center;
    color: #aaa; font-size: .78rem; margin: 4px 0 14px;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--gray-200, #e3e6ea);
}
.auth-divider span { padding: 0 12px; }

/* Formalar */
.auth-form { display: none; flex-direction: column; gap: 12px; }
.auth-form.active { display: flex; }
.auth-form label {
    display: flex; flex-direction: column; gap: 6px;
    font-size: .8rem; font-weight: 600; color: #555;
}
.auth-form input {
    padding: 13px 15px; border: 1px solid var(--gray-200, #e3e6ea);
    border-radius: 11px; font-family: inherit; font-size: .92rem;
    background: #fafbfc; transition: all .2s;
}
.auth-form input:focus {
    outline: none; border-color: var(--green-600, #2d9d63);
    box-shadow: 0 0 0 3px var(--green-50, #e8f6ee); background: #fff;
}
.auth-submit {
    margin-top: 6px; padding: 14px; border: none; cursor: pointer;
    background: var(--green-600, #2d9d63); color: #fff; border-radius: 11px;
    font-family: inherit; font-size: .95rem; font-weight: 700; transition: all .2s;
}
.auth-submit:hover { background: var(--green-700, #1b6e45); }
.auth-switch { text-align: center; font-size: .83rem; color: #888; margin: 2px 0 0; }
.auth-switch a { color: var(--green-700, #1b6e45); font-weight: 600; }

.auth-back {
    display: block; text-align: center; margin-top: 16px;
    font-size: .82rem; color: #999;
}
.auth-back:hover { color: var(--green-700, #1b6e45); }

/* ---- Responsive ---- */
@media (max-width: 880px) {
    .auth-visual { display: none; }
    .auth-mobile-logo { display: inline-flex; align-items: center; justify-content: center; width: 100%; }
    .auth-panel { padding: 36px 20px; }
}
