/* =====================================================================
   sh-auth.css - hyrja e studenteve (login.php) dhe hyrja ne panelin e
   statistikave (statistics.php). I njejti layout si hyrja e sec5, me
   ngjyrat e projektit SHIELD-AI (blu e erret, gurkali, ari).
   ===================================================================== */

:root {
    --sh-bg-1: #0f2744;
    --sh-bg-2: #081729;
    --sh-card: #f3f7fb;
    --sh-primary: #1e3c72;
    --sh-primary-light: #2a5298;
    --sh-teal: #079789;
    --sh-teal-dark: #06816f;
    --sh-gold: #fac97c;
    --sh-title: #1c2f4d;
    --sh-muted: #6c7a8e;
    --sh-text: #2b3a4f;
    --sh-border: #d6dfea;
    --sh-danger: #c0392b;
    --sh-success: #1b8a5a;
    --sh-radius: 22px;
}

* { box-sizing: border-box; }

body.sh-auth-body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, #23487a 0%, var(--sh-bg-1) 55%, var(--sh-bg-2) 100%) fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--sh-text);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 16px;
    position: relative;
    overflow-x: hidden;
}
/* Rrjete e lehte ne sfond - te kujton rafte/kabllot e nje data-center-i */
body.sh-auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 75%);
            mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.sh-float {
    position: fixed;
    font-size: 42px;
    opacity: 0.16;
    z-index: 0;
    animation: sh-float-anim 9s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
}
.sh-float:nth-child(1) { top: 8%;  left: 6%;  animation-delay: 0s; font-size: 54px; }
.sh-float:nth-child(2) { top: 65%; left: 4%;  animation-delay: 1.5s; }
.sh-float:nth-child(3) { top: 15%; right: 8%; animation-delay: 0.7s; font-size: 60px; }
.sh-float:nth-child(4) { top: 72%; right: 6%; animation-delay: 2.2s; }
.sh-float:nth-child(5) { top: 42%; left: 2%;  animation-delay: 3s; font-size: 34px; }
.sh-float:nth-child(6) { top: 38%; right: 3%; animation-delay: 1s; font-size: 38px; }

@keyframes sh-float-anim {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-26px) rotate(8deg); }
}

.sh-stack {
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sh-card {
    background: var(--sh-card);
    width: 100%;
    border-radius: var(--sh-radius);
    box-shadow: 0 30px 70px rgba(4, 14, 30, 0.55);
    padding: 48px 44px 40px;
    position: relative;
    overflow: hidden;
    animation: sh-card-in 0.5s cubic-bezier(.2,.8,.2,1);
}
@keyframes sh-card-in {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.sh-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--sh-primary), var(--sh-teal), var(--sh-gold), var(--sh-primary-light), var(--sh-primary));
    background-size: 300% 100%;
    animation: sh-gradient-shift 6s linear infinite;
}
@keyframes sh-gradient-shift {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

.sh-logo-wrap { text-align: center; margin-bottom: 8px; }
.sh-logo-wrap img { width: 170px; height: auto; }

.sh-uni-name {
    text-align: center;
    color: var(--sh-title);
    font-weight: 800;
    font-size: clamp(15px, 3vw, 21px);
    line-height: 1.35;
    margin: 10px 0 2px;
    letter-spacing: 0.3px;
}

.sh-project-badge {
    margin: 14px auto 8px;
    background: linear-gradient(125deg, var(--sh-primary) 0%, #1f5a86 55%, #07857a 100%);
    color: #fff;
    border-radius: 18px;
    padding: 14px 22px 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.32);
}
.sh-project-title { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.55; }
.sh-project-title strong { color: var(--sh-gold); font-weight: 800; letter-spacing: 0.4px; }
.sh-project-acronym {
    margin: 9px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 11.5px;
    font-style: italic;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}
.sh-project-acronym span { color: var(--sh-gold); font-style: normal; font-weight: 800; }

.sh-project-desc {
    text-align: center;
    color: var(--sh-muted);
    font-size: 14.5px;
    line-height: 1.7;
    margin: 18px auto 26px;
}

.sh-login-heading {
    margin: 18px auto 2px;
    max-width: 380px;
    text-align: center;
    color: var(--sh-title);
    font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.42;
}
.sh-login-heading + .sh-project-badge { margin: 14px auto 26px; }

.sh-field { margin-bottom: 22px; }
.sh-field label { display: block; font-size: 14px; color: var(--sh-muted); margin-bottom: 6px; font-weight: 700; }
.sh-field input[type=text],
.sh-field input[type=email],
.sh-field input[type=password] {
    width: 100%;
    border: 1.5px solid var(--sh-border);
    border-radius: 12px;
    background: #fff;
    padding: 11px 14px;
    font-size: 15.5px;
    color: var(--sh-text);
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sh-field input:focus {
    outline: none;
    border-color: var(--sh-teal);
    box-shadow: 0 0 0 4px rgba(7, 151, 137, 0.14);
}

.sh-password-wrap { position: relative; }
.sh-password-wrap input { padding-right: 40px; }
.sh-eye-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: var(--sh-muted); padding: 0; line-height: 0;
}
.sh-eye-toggle:hover { color: var(--sh-primary); }

.sh-btn {
    display: block;
    width: 100%;
    background: linear-gradient(120deg, var(--sh-primary-light), var(--sh-primary));
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 10px 24px rgba(30, 60, 114, 0.35);
    transition: transform 0.12s, box-shadow 0.12s;
}
.sh-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 60, 114, 0.45); }
.sh-btn:active { transform: translateY(0); }

.sh-footer-link { text-align: center; margin: 24px 0 0; font-size: 14.5px; color: var(--sh-muted); }
.sh-footer-link a { color: var(--sh-primary); font-weight: 800; text-decoration: none; }
.sh-footer-link a:hover { text-decoration: underline; }
.sh-footer-link.sh-footer-link-follow { margin-top: 10px; }
.sh-link-soft-red {
    background: none; border: none; padding: 0; font: inherit; font-weight: 800; color: #e57373; cursor: pointer;
}
.sh-link-soft-red:hover { color: #d95c5c; text-decoration: underline; }

.sh-error {
    background: #fdeeee;
    color: var(--sh-danger);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ---------------- Karta e Data-Center-it nen formen e hyrjes ---------------- */
.sh-dc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    color: #fff;
    text-decoration: none;
    border-radius: 18px;
    padding: 26px 30px 22px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(150deg, #2c5590 0%, #4879b3 50%, #8fb4dd 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.sh-dc-card::after {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: -1;
}
.sh-dc-card:hover { transform: translateY(-5px); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38); }
.sh-dc-title { font-weight: 800; font-size: 19px; line-height: 1.3; margin: 0 0 14px; text-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.sh-dc-desc { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,0.92); margin: 0 0 14px; }
.sh-dc-footer {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.22);
}
.sh-dc-note { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.85); }
.sh-dc-cta { font-weight: 800; font-size: 14.5px; }

/* ---------------- Dritarja "Keni harruar fjalekalimin?" ---------------- */
.sh-reset-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 18, 36, 0.66);
    backdrop-filter: blur(3px);
    animation: sh-fade-in 0.18s ease-out;
}
.sh-reset-overlay[hidden] { display: none; }
.sh-reset-box {
    width: 100%;
    max-width: 540px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(3, 10, 25, 0.55);
    animation: sh-pop-in 0.2s ease-out;
}
.sh-reset-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px 18px 24px;
    background: var(--sh-primary);
    border-bottom: 3px solid var(--sh-gold);
    color: #fff;
}
.sh-reset-head-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 10px;
    border: 1.5px solid rgba(250, 201, 124, 0.7);
    color: var(--sh-gold);
    display: flex; align-items: center; justify-content: center;
}
.sh-reset-kicker {
    margin: 0;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}
.sh-reset-title { margin: 2px 0 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: #fff; }
.sh-reset-close {
    margin-left: auto;
    align-self: flex-start;
    flex-shrink: 0;
    width: 34px; height: 34px;
    border: none; border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px; line-height: 1;
    cursor: pointer;
}
.sh-reset-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.sh-reset-body { padding: 26px 28px 26px; }
.sh-reset-step { display: grid; grid-template-columns: 30px 1fr; gap: 14px; margin-bottom: 20px; }
.sh-reset-num {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #eaf1f8;
    border: 1px solid #cddbeb;
    color: var(--sh-primary);
    font-size: 14px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.sh-reset-step label { display: block; margin: 4px 0 8px; font-size: 14px; font-weight: 600; line-height: 1.5; color: #3b4a5e; }
.sh-reset-step input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--sh-border);
    border-radius: 8px;
    background: #f7f9fc;
    font-family: inherit;
    font-size: 15px;
    color: var(--sh-text);
}
.sh-reset-step input:focus {
    outline: none;
    background: #fff;
    border-color: var(--sh-teal);
    box-shadow: 0 0 0 3px rgba(7, 151, 137, 0.14);
}
.sh-reset-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
    padding: 13px 18px;
    border: none;
    border-radius: 8px;
    background: var(--sh-teal);
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}
.sh-reset-confirm svg { flex-shrink: 0; }
.sh-reset-confirm:hover { background: var(--sh-teal-dark); }
.sh-reset-confirm:disabled { opacity: 0.6; cursor: progress; }

.sh-reset-result {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px 18px 18px 16px;
    border-radius: 10px;
    border-left: 5px solid;
}
.sh-reset-result p { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.65; }
.sh-reset-result-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.sh-reset-result.is-success { background: #e9f7f0; border-left-color: var(--sh-success); }
.sh-reset-result.is-success p { color: #155e3d; }
.sh-reset-result.is-success .sh-reset-result-icon { background: var(--sh-success); }
.sh-reset-result.is-error { background: #fdeeee; border-left-color: var(--sh-danger); }
.sh-reset-result.is-error p { color: #9b2a20; }
.sh-reset-result.is-error .sh-reset-result-icon { background: var(--sh-danger); }
.sh-reset-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.sh-reset-ok {
    min-width: 96px;
    padding: 9px 22px;
    border: none;
    border-radius: 8px;
    background: var(--sh-primary);
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
}
.sh-reset-ok:hover { background: var(--sh-primary-light); }

@keyframes sh-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sh-pop-in {
    from { transform: scale(0.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
