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

:root {
    --ocean: #0ea5e9;
    --deep: #0369a1;
    --deeper: #075985;
    --aqua: #38bdf8;
    --teal: #14b8a6;
    --text: #0c2340;
    --muted: #5a7fa0;
    --soft: #a8c8e8;
    --field-bg: #ffffff;
    --field-border: rgba(14, 165, 233, 0.25);
}

html,
body {
    min-height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(160deg, #e8f6ff 0%, #d0eeff 40%, #c3e9f5 70%, #ddf4f0 100%);
    overflow-x: hidden;
}

.bg-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.ray {
    position: absolute;
    top: -40px;
    opacity: .06;
    transform-origin: top center;
    background: linear-gradient(to bottom, #38bdf8, transparent);
    animation: rayPulse ease-in-out infinite alternate;
}

@keyframes rayPulse {
    from {
        opacity: .04;
        transform: scaleX(1);
    }

    to {
        opacity: .12;
        transform: scaleX(1.8);
    }
}

.bubbles {
    position: absolute;
    inset: 0;
}

.bbl {
    position: absolute;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.18);
    animation: bubbleRise linear infinite;
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: .7;
    }

    80% {
        opacity: .3;
    }

    100% {
        transform: translateY(-110vh) scale(1.3);
        opacity: 0;
    }
}

.drop {
    position: absolute;
    width: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(to bottom, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.45));
    animation: dropFall linear infinite;
    opacity: 0;
}

@keyframes dropFall {
    0% {
        opacity: 0;
        transform: scaleY(0);
    }

    10% {
        opacity: .6;
    }

    90% {
        opacity: .3;
    }

    100% {
        opacity: 0;
        transform: translateY(100px) scaleY(1.5);
    }
}

.wave-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    animation: waveSlide linear infinite;
}

.wave1 {
    animation-duration: 9s;
    opacity: .16;
}

.wave2 {
    animation-duration: 13s;
    opacity: .11;
    animation-direction: reverse;
}

.wave3 {
    animation-duration: 7s;
    opacity: .09;
}

@keyframes waveSlide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.page {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    width: 100%;
    max-width: 900px;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 32px 80px rgba(3, 105, 161, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    animation: cardIn .9s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* LEFT */
.panel-left {
    flex: 0 0 44%;
    background: linear-gradient(160deg, #0ea5e9 0%, #0284c7 40%, #0369a1 75%, #075985 100%);
    padding: 48px 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.ripple-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.13);
    animation: rippleOut ease-out infinite;
}

.rr1 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -100px;
    animation-duration: 5s;
}

.rr2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-duration: 5s;
    animation-delay: .6s;
}

.rr3 {
    width: 120px;
    height: 120px;
    bottom: 0;
    right: 0;
    animation-duration: 5s;
    animation-delay: 1.2s;
}

@keyframes rippleOut {
    0% {
        transform: scale(0.8);
        opacity: .6;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.can-wrap {
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .09;
    pointer-events: none;
}

.brand {
    position: relative;
    z-index: 2;
    animation: fadeUp .7s .15s both cubic-bezier(.16, 1, .3, 1);
}

.logo-wrap {
    width: 66px;
    height: 66px;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brand-name {
    font-family: 'Nunito', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    line-height: 1;
    margin-bottom: 4px;
}

.brand-sub {
    font-size: .72rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tagline {
    position: relative;
    z-index: 2;
    animation: fadeUp .7s .3s both cubic-bezier(.16, 1, .3, 1);
}

.tagline-carousel {
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.tline {
    position: absolute;
    inset: 0;
    font-size: .9rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.7;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
    pointer-events: none;
}

.tline.active {
    opacity: 1;
    transform: translateY(0);
}

.tline.exit {
    opacity: 0;
    transform: translateY(-14px);
}

.stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: .65rem;
    color: rgba(255, 255, 255, .6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.stat-div {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 16px;
}

.dots {
    display: flex;
    gap: 6px;
    margin-top: 16px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .28);
    transition: all .4s;
}

.dot.active {
    width: 18px;
    background: #fff;
}

/* RIGHT */
.panel-right {
    flex: 1;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    padding: 50px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.8);
}

.heading {
    animation: fadeUp .7s .1s both cubic-bezier(.16, 1, .3, 1);
    margin-bottom: 30px;
}

.heading h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.4px;
    margin-bottom: 5px;
}

.heading p {
    font-size: .88rem;
    color: var(--muted);
}

.drop-accent {
    display: inline-block;
    width: 8px;
    height: 10px;
    background: var(--ocean);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin-right: 8px;
    vertical-align: middle;
    animation: dropBob 2s ease-in-out infinite;
}

@keyframes dropBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.field {
    margin-bottom: 18px;
    animation: fadeUp .7s both cubic-bezier(.16, 1, .3, 1);
}

.field:nth-of-type(1) {
    animation-delay: .22s;
}

.field:nth-of-type(2) {
    animation-delay: .32s;
}

label {
    display: block;
    font-size: .74rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .6px;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.input-wrap {
    position: relative;
}

.ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #94b8d0;
    pointer-events: none;
    transition: color .2s;
}

.input-wrap:focus-within .ico {
    color: var(--ocean);
}

/* FIXED: bright white input fields */
input {
    width: 100%;
    padding: 13px 14px 13px 43px;
    background: #ffffff;
    border: 1.5px solid #c8e0f0;
    border-radius: 12px;
    color: #0c2340;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .93rem;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
    -webkit-appearance: none;
    box-shadow: 0 1px 4px rgba(14, 165, 233, 0.06);
}

input::placeholder {
    color: #a8c4d8;
}

input:focus {
    border-color: var(--ocean);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14), 0 1px 4px rgba(14, 165, 233, 0.08);
}

.eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94b8d0;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: color .2s;
}

.eye-btn:hover {
    color: var(--ocean);
}

.captcha-row {
    margin-bottom: 22px;
    animation: fadeUp .7s .42s both cubic-bezier(.16, 1, .3, 1);
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f0f8ff;
    border: 1.5px solid #c8e0f0;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s, background .2s;
}

.captcha-box:hover {
    background: #e4f2fc;
    border-color: rgba(14, 165, 233, 0.4);
}

.captcha-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid #c8e0f0;
    border-radius: 5px;
    background: #fff;
    position: relative;
    transition: all .25s;
}

.captcha-box.checked .captcha-check {
    background: #22c55e;
    border-color: #22c55e;
}

.captcha-box.checked .captcha-check::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.captcha-label {
    font-size: .86rem;
    color: var(--muted);
}

.recaptcha-logo {
    margin-left: auto;
    font-size: .62rem;
    color: #a8c4d8;
    text-align: right;
    line-height: 1.4;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7, #0369a1);
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.35);
    animation: fadeUp .7s .52s both cubic-bezier(.16, 1, .3, 1), gradShift 5s linear infinite;
}

@keyframes gradShift {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .18), transparent);
    opacity: 0;
    transition: opacity .2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(14, 165, 233, .45);
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-rpl {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    width: 10px;
    height: 10px;
    transform: scale(0);
    animation: rplAnim .6s linear;
    pointer-events: none;
}

@keyframes rplAnim {
    to {
        transform: scale(40);
        opacity: 0;
    }
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    animation: fadeUp .7s .6s both cubic-bezier(.16, 1, .3, 1);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(14, 165, 233, 0.15);
}

.divider span {
    font-size: .72rem;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-text {
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
    animation: fadeUp .7s .68s both cubic-bezier(.16, 1, .3, 1);
}

.footer-text a {
    color: var(--ocean);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}

.footer-text a:hover {
    color: var(--deep);
}

/* Addtional CSS */
.brand-logo { max-width:60px; height:auto; }

/* ── WSMS Modern Alerts ── */
#alert-container { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.ws-alert {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid transparent;
  position: relative; overflow: hidden;
  animation: alertSlideIn .4s cubic-bezier(.16,1,.3,1) both;
  backdrop-filter: blur(8px);
}
.ws-alert::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; border-radius: 2px 2px 0 0;
}
.ws-alert.dismissing { animation: alertSlideOut .35s cubic-bezier(.4,0,1,1) forwards; }

@keyframes alertSlideIn {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes alertSlideOut {
  from { opacity: 1; transform: translateY(0); max-height: 200px; padding: 14px 16px; }
  to   { opacity: 0; transform: translateY(-8px); max-height: 0; padding: 0 16px; }
}

.ws-alert.danger  { background: rgba(254,242,242,.95); border-color: #fca5a5; }
.ws-alert.danger::before  { background: linear-gradient(90deg,#ef4444,#f87171); }
.ws-alert.success { background: rgba(240,253,244,.95); border-color: #86efac; }
.ws-alert.success::before { background: linear-gradient(90deg,#22c55e,#4ade80); }
.ws-alert.warning { background: rgba(254,252,232,.95); border-color: #fde047; }
.ws-alert.warning::before { background: linear-gradient(90deg,#eab308,#facc15); }
.ws-alert.info    { background: rgba(240,249,255,.95); border-color: #7dd3fc; }
.ws-alert.info::before    { background: linear-gradient(90deg,#0ea5e9,#38bdf8); }

.alert-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.danger  .alert-icon { background: #fee2e2; color: #dc2626; }
.success .alert-icon { background: #dcfce7; color: #16a34a; }
.warning .alert-icon { background: #fef9c3; color: #ca8a04; }
.info    .alert-icon { background: #e0f2fe; color: #0284c7; }

.alert-body { flex: 1; min-width: 0; }
.alert-title { font-size: .82rem; font-weight: 700; letter-spacing: .2px; margin-bottom: 2px; }
.danger  .alert-title { color: #b91c1c; }
.success .alert-title { color: #15803d; }
.warning .alert-title { color: #a16207; }
.info    .alert-title { color: #0369a1; }
.alert-msg { font-size: .82rem; line-height: 1.5; }
.danger  .alert-msg { color: #7f1d1d; }
.success .alert-msg { color: #14532d; }
.warning .alert-msg { color: #713f12; }
.info    .alert-msg { color: #0c4a6e; }

.alert-close {
  flex-shrink: 0; width: 26px; height: 26px; border: none;
  background: none; cursor: pointer; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; margin-top: 2px; font-size: 14px;
}
.danger  .alert-close { color: #ef4444; } .danger  .alert-close:hover { background: rgba(239,68,68,.12); }
.success .alert-close { color: #22c55e; } .success .alert-close:hover { background: rgba(34,197,94,.12); }
.warning .alert-close { color: #eab308; } .warning .alert-close:hover { background: rgba(234,179,8,.12); }
.info    .alert-close { color: #0ea5e9; } .info    .alert-close:hover { background: rgba(14,165,233,.12); }

.alert-progress {
  position: absolute; bottom: 0; left: 0; height: 2px; border-radius: 0;
  animation: progressShrink 5s linear forwards;
}
.danger  .alert-progress { background: #ef4444; }
.success .alert-progress { background: #22c55e; }
.warning .alert-progress { background: #eab308; }
.info    .alert-progress { background: #0ea5e9; }
@keyframes progressShrink { from { width: 100%; } to { width: 0%; } }


@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media(max-width:640px) {
    .page {
        padding: 14px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .card {
        flex-direction: column;
        border-radius: 22px;
    }

    .panel-left {
        flex: none;
        padding: 30px 26px 26px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .tagline-carousel {
        min-height: 68px;
    }

    .tline {
        font-size: .86rem;
    }

    .panel-right {
        padding: 30px 22px;
        border-left: none;
        border-top: 1px solid rgba(14, 165, 233, 0.12);
    }

    .heading h1 {
        font-size: 1.5rem;
    }

    .stats {
        gap: 12px;
    }
}

@media(max-width:380px) {
    .panel-right {
        padding: 26px 16px;
    }

    .panel-left {
        padding: 26px 18px 22px;
    }
}