/*
 * WSDMS Login — Variant C: Light Blue · All Sans-Serif
 * Ocean Mist · Plus Jakarta Sans throughout
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-page:      #daeef8;
    --bg-card:      rgba(240, 250, 255, 0.88);
    --ocean-teal:   #0a8a7a;
    --ocean-bright: #12c4a8;
    --blue-deep:    #0f5fa0;
    --blue-bright:  #2596d4;
    --text-primary: #0a2236;
    --text-muted:   #3a6e8e;
    --text-dim:     #8ab4cc;
    --danger:       #dc2626;
    --border:       rgba(37,108,176,0.18);
    --border-focus: #2596d4;
}

html, body {
    height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    overflow: hidden;
}

/* ── Animated light-blue ocean background ───────────────── */
.bg {
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(37,150,212,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(10,138,122,0.1) 0%, transparent 60%),
        linear-gradient(165deg, #c8e8f8 0%, #d4eef8 40%, #ddf3fc 100%);
}

.bubbles {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    overflow: hidden;
}
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(37,150,212,0.22), rgba(37,150,212,0.04));
    border: 1px solid rgba(37,150,212,0.2);
    animation: rise linear infinite;
}
.bubble:nth-child(1)  { width:6px;  height:6px;  left:10%; bottom:-10%; animation-duration:14s; animation-delay:0s;   }
.bubble:nth-child(2)  { width:10px; height:10px; left:25%; bottom:-10%; animation-duration:18s; animation-delay:3s;   }
.bubble:nth-child(3)  { width:4px;  height:4px;  left:40%; bottom:-10%; animation-duration:11s; animation-delay:6s;   }
.bubble:nth-child(4)  { width:8px;  height:8px;  left:60%; bottom:-10%; animation-duration:20s; animation-delay:1s;   }
.bubble:nth-child(5)  { width:5px;  height:5px;  left:75%; bottom:-10%; animation-duration:15s; animation-delay:8s;   }
.bubble:nth-child(6)  { width:12px; height:12px; left:85%; bottom:-10%; animation-duration:22s; animation-delay:4s;   }
.bubble:nth-child(7)  { width:3px;  height:3px;  left:50%; bottom:-10%; animation-duration:12s; animation-delay:10s;  }
.bubble:nth-child(8)  { width:7px;  height:7px;  left:15%; bottom:-10%; animation-duration:16s; animation-delay:2s;   }
@keyframes rise {
    0%   { transform: translateY(0) translateX(0);     opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}

/* ── Layout ─────────────────────────────────────────────── */
.page {
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 2rem;
}

.card {
    width: 100%; max-width: 440px;
    background: var(--bg-card);
    border: 1px solid rgba(37,150,212,0.25);
    border-radius: 20px;
    padding: 3rem 2.75rem;
    backdrop-filter: blur(16px);
    box-shadow:
        0 0 0 1px rgba(37,150,212,0.08),
        0 24px 56px rgba(15,60,100,0.14),
        inset 0 1px 0 rgba(255,255,255,0.7);
    animation: cardIn 0.6s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Branding ────────────────────────────────────────────── */
.logo-row {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 2.25rem;
}
.logo-icon {
    /* width: 44px; height: 44px; */
    width: 70px; height: 70px;
    /* background: linear-gradient(135deg, var(--blue-deep), var(--blue-bright)); */
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 16px rgba(37,150,212,0.35);
}
.logo-text .app-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.2;
}
.logo-text .app-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.subline {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    animation: fadeSlide 0.3s ease both;
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* ── Form ────────────────────────────────────────────────── */
.field { margin-bottom: 1.25rem; }

label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.75);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input:focus {
    border-color: var(--border-focus);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 0 0 3px rgba(37,150,212,0.15);
}
input::placeholder { color: var(--text-dim); }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem; }
.pw-toggle {
    position: absolute; right: 0.9rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 1rem;
    transition: color 0.2s; padding: 0;
}
.pw-toggle:hover { color: var(--blue-bright); }

.btn-login {
    width: 100%;
    padding: 0.9rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-bright) 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(37,150,212,0.35);
}
.btn-login:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(37,150,212,0.45);
}
.btn-login:active { transform: translateY(0); }

/* ── Footer ──────────────────────────────────────────────── */
.card-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(37,108,176,0.15);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.card-footer strong {
    color: var(--blue-deep);
    font-weight: 600;
}
