﻿/* ============================
   AUTH / LOGIN – Light Glass Pro (Narrow)
   ============================ */

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: radial-gradient(circle at top left, rgba(191, 219, 254, 0.55), transparent 55%), radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.38), transparent 58%), linear-gradient(135deg, #e5f0ff, #eef2ff);
}

/* Küçük ekranlar için padding'i azaltalım */
@media (max-width: 576px) {
    .auth-shell {
        padding: 2.2rem 1.1rem;
    }
}

.login-card {
    width: 360px;
    position: relative;
    /* Camın asıl rengi: daha şeffaf */
    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    border-radius: 1.45rem;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(148, 163, 184, 0.12);
    padding: 1.8rem 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}


    /* Card’ın üst kenarında hafif highlight çizgisi */
    .login-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        /* Yukarıdan gelen hafif parlama */
        background: linear-gradient( to bottom, rgba(255, 255, 255, 0.7), transparent 45% );
        mix-blend-mode: screen;
        opacity: 0.8;
        pointer-events: none;
    }

    /* İçerik, before’dan dolayı bir seviye yukarıda olsun */
    .login-card > * {
        position: relative;
        z-index: 1;
    }

@media (max-width: 480px) {
    .login-card {
        padding: 1.6rem 1.5rem 1.5rem;
        border-radius: 1.3rem;
        max-width: 100%; /* Mobile’da ekrana otursun */
    }
}

/* Header */

.login-card-header {
    display: flex;
    gap: 1.1rem;
    margin-bottom: 1.6rem;
    align-items: center;
}

.login-logo-circle {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    /* Tam beyaz yerine yarı saydam cam */
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.45);
    flex-shrink: 0;
}

.login-logo {
    width: 30px;
    height: 30px;
}

.login-title-block {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.login-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: rgba(239, 246, 255, 0.98);
    color: #64748b;
    border: 1px solid rgba(191, 219, 254, 0.95);
}

.login-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

.login-subtitle {
    font-size: 0.82rem;
    margin: 0;
    color: var(--color-text-muted);
}

/* Alert */

.login-alert {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.login-alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.login-alert-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background-color: #fee2e2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Form */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Label’lar Title Case */

.login-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.3rem;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .login-input-wrapper input {
        width: 100%;
        font-size: 0.86rem;
        padding: 0.58rem 2.5rem 0.58rem 2.35rem;
        border-radius: 0.75rem;
        border: 1px solid rgba(209, 213, 219, 0.98);
        background: radial-gradient(circle at top, #f9fafb, #ffffff);
        color: var(--color-text);
        outline: none;
        transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out, background-color 0.16s ease-out, transform 0.06s ease-out;
    }

        .login-input-wrapper input::placeholder {
            color: rgba(148, 163, 184, 0.95);
        }

        .login-input-wrapper input:focus {
            border-color: #60a5fa;
            box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.95), 0 0 0 4px rgba(191, 219, 254, 0.55);
            background-color: #ffffff;
            transform: translateY(-0.5px);
        }

/* Sol ikon */

.login-input-icon {
    position: absolute;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    .login-input-icon svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: #9ca3af;
        stroke-width: 1.7;
    }

/* Sağdaki şifre göster/gizle butonu */

.login-password-toggle {
    position: absolute;
    right: 0rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    outline: none;
    color: #9ca3af;
    transition: background-color 0.12s ease-out, color 0.12s ease-out, box-shadow 0.12s ease-out, transform 0.08s ease-out;
}

    .login-password-toggle:hover {
        background-color: rgba(226, 232, 240, 0.95);
        color: #6b7280;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(148, 163, 184, 0.6);
    }

    .login-password-toggle:active {
        transform: translateY(0);
        box-shadow: none;
    }

    .login-password-toggle:focus-visible {
        box-shadow: 0 0 0 2px rgba(191, 219, 254, 0.9);
    }

    .login-password-toggle svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
    }

/* Remember + link satırı */

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: 0.1rem;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: var(--color-text-muted);
    user-select: none;
}

    .login-remember input[type="checkbox"] {
        width: 15px;
        height: 15px;
        border-radius: 0.4rem;
        border: 1px solid rgba(209, 213, 219, 0.95);
        accent-color: #3b82f6;
    }

.login-link {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #2563eb;
    text-decoration: none;
    cursor: pointer;
}

    .login-link:hover {
        text-decoration: underline;
    }

/* Submit butonu */

.login-submit {
    margin-top: 0.75rem;
    /* genişlik auto kalsın ama merkezi hizalansın */
    width: auto;
    align-self: center;
    border: none;
    border-radius: 0.9rem;
    padding: 0.6rem 2.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #e5f2ff;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.25);
    transition: all 0.12s ease-out;
}

    .login-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 32px rgba(37, 99, 235, 0.45);
        filter: brightness(1.03);
    }

    .login-submit:active {
        transform: translateY(0);
        box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
    }

/* Alt not */

.login-footnote {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* Mobile sıkıştırma */

@media (max-width: 480px) {
    .login-card-header {
        align-items: flex-start;
    }

    .login-title {
        font-size: 1.25rem;
    }

    .login-subtitle {
        font-size: 0.8rem;
    }

    .login-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
