/* ============================================================
   Serveo — Ortak Giriş Paneli Teması (tüm roller)
   Panelin kendi CSS'inden SONRA yüklenir; giriş kabuğunu ve
   form kontrollerini .login-box altında kapsayarak günceller.
   Dashboard/iç sayfalar etkilenmez (yalnızca .login-page).
   ============================================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Poppins', 'Inter', 'Segoe UI', sans-serif;
    background:
        radial-gradient(65% 50% at 50% 0%, rgba(108,92,231,.40), transparent 62%),
        radial-gradient(50% 40% at 90% 100%, rgba(31,209,178,.20), transparent 60%),
        linear-gradient(160deg, #14122A 0%, #1c1843 58%, #0f3460 100%);
}

.login-box {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 36px 32px 28px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 30px 80px -22px rgba(8,6,26,.75);
    animation: loginPop .5s cubic-bezier(.2,.9,.3,1.15);
}
@keyframes loginPop {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

/* Üstte ince marka şeridi */
.login-box::before {
    content: '';
    position: absolute; left: 24px; right: 24px; top: 0; height: 4px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, #6C5CE7, #1FD1B2);
}

/* Serveo marka logosu (wordmark) */
.login-brand {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-bottom: 20px;
}
.login-brand .login-dot {
    width: 30px; height: 30px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px;
    background: linear-gradient(135deg, #8b7cf0, #6C5CE7);
    box-shadow: 0 8px 18px -6px rgba(108,92,231,.8);
}
.login-brand .wm {
    font-weight: 800; font-size: 21px; letter-spacing: -.6px; color: #14122A;
}
.login-brand .wm b { color: #6C5CE7; font-weight: 800; }

/* Panel ikonu (rol) */
.login-box .logo-area { text-align: center; margin-bottom: 12px; }
.login-box .logo-area .icon {
    width: 62px; height: 62px; border-radius: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 27px; margin-bottom: 0;
    background: linear-gradient(135deg, #6C5CE7, #1FD1B2);
    box-shadow: 0 14px 30px -10px rgba(108,92,231,.65);
}

.login-box h1 {
    text-align: center; font-size: 21px; font-weight: 700;
    color: #14122A; margin: 4px 0 3px; line-height: 1.25;
}
.login-box .subtitle {
    text-align: center; color: #8886a3; font-size: 13.5px;
    font-weight: 500; margin: 0 0 24px;
}

/* Form kontrolleri — .login-box altında kapsanır */
.login-box form { text-align: left; }
.login-box .form-group,
.login-box .sa-form-group { margin-bottom: 16px; }
.login-box label {
    display: block; font-size: 12.5px; font-weight: 600;
    color: #55536e; margin-bottom: 7px;
}
.login-box label i { color: #6C5CE7; margin-right: 4px; }
.login-box input[type="text"],
.login-box input[type="password"],
.login-box .form-control,
.login-box .sa-input {
    width: 100%; padding: 13px 15px;
    border: 1.5px solid #e6e5f0; border-radius: 12px;
    font-size: 14.5px; font-family: inherit; color: #14122A;
    background: #fbfbfe; transition: border-color .18s, box-shadow .18s, background .18s;
    box-sizing: border-box;
}
.login-box input:focus,
.login-box .form-control:focus,
.login-box .sa-input:focus {
    outline: none; border-color: #6C5CE7; background: #fff;
    box-shadow: 0 0 0 3.5px rgba(108,92,231,.14);
}

.login-box .btn,
.login-box button[type="submit"],
.login-box .sa-btn {
    width: 100%; margin-top: 8px; padding: 13px 18px;
    border: none; border-radius: 12px; cursor: pointer;
    font-family: inherit; font-size: 15px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #6C5CE7, #5a4bd0);
    box-shadow: 0 12px 26px -10px rgba(108,92,231,.75);
    transition: transform .14s, box-shadow .14s, filter .14s;
}
.login-box .btn:hover,
.login-box button[type="submit"]:hover,
.login-box .sa-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.login-box .btn:active,
.login-box button[type="submit"]:active { transform: translateY(0); }

/* Uyarı kutusu */
.login-box .alert {
    display: flex; align-items: center; gap: 9px;
    padding: 12px 14px; border-radius: 12px; font-size: 13px;
    margin-bottom: 18px; text-align: left;
}
.login-box .alert-error {
    background: #fff0f2; color: #c02640; border: 1px solid #ffd5dc;
}
.login-box .alert i { font-size: 14px; }

/* Alt bağlantı */
.login-back { text-align: center; margin-top: 20px; }
.login-back a { color: #8886a3; font-size: 13px; font-weight: 500; }
.login-back a:hover { color: #6C5CE7; }

@media (max-width: 480px) {
    .login-box { padding: 30px 22px 24px; border-radius: 18px; }
}
