/* ===== Login page: glass card + photos that fade smoothly into each other ===== */
html, body { height: 100%; }
.login-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    color: #fff;
    background: #0b3d1e;
    overflow-x: hidden;
}

/* ---- the 4 background photos. Each one is visible for 6s and cross-fades; total loop = 4 x 6s = 24s ---- */
.bg-slides { position: fixed; inset: 0; z-index: 0; }
.bg-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0;
    animation: bgFade 24s infinite;
    transform: scale(1.05);
}
.bg-slide:nth-child(1) { animation-delay: 0s; }
.bg-slide:nth-child(2) { animation-delay: 6s; }
.bg-slide:nth-child(3) { animation-delay: 12s; }
.bg-slide:nth-child(4) { animation-delay: 18s; }
@keyframes bgFade {
    0%   { opacity: 0; transform: scale(1.05); }
    5%   { opacity: 1; }
    25%  { opacity: 1; }
    32%  { opacity: 0; transform: scale(1.14); }   /* slow zoom while visible */
    100% { opacity: 0; transform: scale(1.14); }
}
.bg-shade {
    position: fixed; inset: 0; z-index: 1;
    background: radial-gradient(ellipse at center, rgba(0, 30, 10, .15) 0%, rgba(0, 30, 10, .55) 100%);
}

.login-wrap {
    position: relative; z-index: 2;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px 16px;
}

/* ---- glass (frosted) card with a double border like the sample ---- */
.glass-card {
    width: 100%; max-width: 440px;
    padding: 9px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.glass-inner {
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, .9);
    padding: 30px 32px 34px;
    background: linear-gradient(160deg, rgba(8, 70, 28, .62), rgba(10, 60, 25, .78));
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    text-align: center;
}
.logo-ring {
    width: 118px; height: 118px; margin: -2px auto 10px;
    border-radius: 50%;
    padding: 5px;
    background: rgba(255, 255, 255, .25);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 8px 24px rgba(0, 0, 0, .35);
}
.logo-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.glass-inner h1 { font-size: 2.1rem; font-weight: 700; margin: 6px 0 2px; letter-spacing: .3px; }
.subtitle { font-size: .92rem; opacity: .92; margin-bottom: 20px; }

form { text-align: left; }
label { display: block; font-weight: 600; margin: 12px 0 6px; font-size: .95rem; }
.glass-input {
    width: 100%;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 13px 16px;
    font-size: 1rem;
    background: rgba(232, 236, 255, .93);
    color: #12301c;
    outline: none;
    transition: box-shadow .2s, border-color .2s;
}
.glass-input:focus { border-color: #b6f58f; box-shadow: 0 0 0 4px rgba(182, 245, 143, .35); }
.pw-wrap { position: relative; }
.pw-wrap .glass-input { padding-right: 48px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #2d5a3a; font-size: 1.15rem; padding: 6px 10px; }
.remember { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 16px 0 14px; cursor: pointer; }
.remember input { width: 20px; height: 20px; accent-color: #7bd34a; }

.login-btn {
    width: 100%; border: 2px solid rgba(255, 255, 255, .9); border-radius: 14px;
    padding: 13px; font-size: 1.1rem; font-weight: 700; color: #0a3a1a;
    background: linear-gradient(180deg, #b5fb8f, #7fe05a);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    transition: transform .15s, filter .15s;
}
.login-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.login-btn:active { transform: translateY(1px); }
.login-error {
    background: rgba(220, 53, 69, .85); border-radius: 12px; padding: 10px 14px; font-size: .92rem; margin-bottom: 4px; text-align: left;
}
.login-foot { margin-top: 16px; font-size: .8rem; opacity: .75; }

@media (max-width: 480px) {
    .glass-inner { padding: 24px 20px 26px; }
    .glass-inner h1 { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .bg-slide { animation: none; }
    .bg-slide:first-child { opacity: 1; }
}

@font-face { font-family: "DireEthiopic"; src: url("/fonts/NotoSansEthiopic-Regular.ttf") format("truetype"); font-weight: 400; unicode-range: U+1200-139F, U+2D80-2DDF; font-display: swap; }
@font-face { font-family: "DireEthiopic"; src: url("/fonts/NotoSansEthiopic-Bold.ttf") format("truetype"); font-weight: 600 800; unicode-range: U+1200-139F, U+2D80-2DDF; font-display: swap; }
body, input, button { font-family: system-ui, "DireEthiopic", "Nyala", sans-serif; }
.login-lang { position: fixed; top: 12px; right: 14px; z-index: 5; display: flex; gap: 6px; }
.login-lang a, .login-lang button { background: rgba(255,255,255,.85); color: #0b5d2a; border: 0; border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.login-lang .on { background: #0b5d2a; color: #fff; }
