/* ========== AUTH PAGES (login / register) ========== */

.auth-body {
    min-height: 100dvh;
    background: #0f1116;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Arka plan dekoratif blob'lar */
.auth-bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.auth-bg-blob.blob-1 {
    width: 480px; height: 480px;
    top: -120px; left: -120px;
    background: #667eea;
}
.auth-bg-blob.blob-2 {
    width: 520px; height: 520px;
    bottom: -160px; right: -140px;
    background: #ff6b6b;
}

.auth-wrap {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.2rem;
}

/* Geri butonu */
.auth-back {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    z-index: 10;
}
.auth-back:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(-2px);
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    animation: authFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(118,75,162,0.2));
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(102,126,234,0.25);
}
.auth-logo img { width: 100%; height: 100%; object-fit: contain; }

.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}
.auth-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}

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

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.3px;
    padding-left: 2px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.25s ease;
}

.auth-input-wrap input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem 0.85rem 2.6rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}
.auth-input-wrap input::placeholder {
    color: rgba(255,255,255,0.35);
}
.auth-input-wrap input:focus {
    background: rgba(255,255,255,0.06);
    border-color: rgba(78,205,196,0.5);
    box-shadow: 0 0 0 4px rgba(78,205,196,0.1);
}
.auth-input-wrap input:focus ~ .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
    color: #4ecdc4;
}

.auth-toggle-pw {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}
.auth-toggle-pw:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

/* Submit */
.auth-submit {
    appearance: none;
    border: none;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.4rem;
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 8px 22px rgba(255,107,107,0.25);
}
.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255,107,107,0.35);
    filter: brightness(1.08);
}
.auth-submit:active {
    transform: translateY(0);
}

/* Alert */
.auth-alert {
    margin-bottom: 1.1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ffb4b4;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.auth-alert i { color: #ff6b6b; }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0 1rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.78rem;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}
.auth-divider span { padding: 0 1rem; }

.auth-footer-text {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
}
.auth-footer-text a {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.auth-footer-text a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-card { padding: 2rem 1.5rem; border-radius: 20px; }
    .auth-title { font-size: 1.35rem; }
}
