﻿/* Brand */
:root {
    --brand: #0084D1;
    --brand-dark: #046aa7;
    --ink: #1d2433;
    --muted: #6b7280;
    --bg: #f5f7fb;
    --card: #ffffff;
    --ring: rgba(0,132,209,.25);
}

/* Page scaffold */
.login-wrap {
    min-height: calc(100vh - 120px); /* keep footer off the form */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 16px 48px; /* ⬅️ top padding increased */
    background: linear-gradient(180deg,#eef7ff, #ffffff 35%);
}

.login-card {
    width: 100%;
    max-width: 520px;
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    overflow: hidden;
    border: 1px solid #e9eef5;
}

/* Compact hero header with overlayed fast bubbles */
.login-header {
    position: relative;
    background: linear-gradient(180deg,#4db8ff,#0084d1);
    color: #fff;
    padding: 24px 18px; /* smaller height */
    text-align: center;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    overflow: hidden;
}

    /* put title above bubbles */
    .login-header > * {
        position: relative;
        z-index: 2
    }

    /* bubble base */
    .login-header .bubble {
        position: absolute;
        bottom: -60px; /* start just below header */
        width: 10px;
        height: 10px; /* small bubbles */
        background: rgba(255,255,255,.35);
        border-radius: 50%;
        filter: blur(.2px);
        animation: rise 6s linear infinite; /* faster default */
        opacity: .8;
        z-index: 1;
        will-change: transform, opacity;
        pointer-events: none;
    }

/* speed/size/position variety */
.bubble.b1 {
    left: 5%;
    width: 8px;
    height: 8px;
    animation-duration: 4.5s;
    animation-delay: .2s;
}

.bubble.b2 {
    left: 10%;
    width: 6px;
    height: 6px;
    animation-duration: 4s;
    animation-delay: 1s;
}

.bubble.b3 {
    left: 15%;
    width: 9px;
    height: 9px;
    animation-duration: 5s;
    animation-delay: .6s;
}

.bubble.b4 {
    left: 20%;
    width: 7px;
    height: 7px;
    animation-duration: 4.2s;
    animation-delay: 1.4s;
}

.bubble.b5 {
    left: 25%;
    width: 6px;
    height: 6px;
    animation-duration: 3.8s;
    animation-delay: .8s;
}

.bubble.b6 {
    left: 32%;
    width: 10px;
    height: 10px;
    animation-duration: 5.2s;
    animation-delay: .3s;
}

.bubble.b7 {
    left: 38%;
    width: 7px;
    height: 7px;
    animation-duration: 4.6s;
    animation-delay: 1.1s;
}

.bubble.b8 {
    left: 45%;
    width: 6px;
    height: 6px;
    animation-duration: 3.6s;
    animation-delay: .5s;
}

.bubble.b9 {
    left: 52%;
    width: 9px;
    height: 9px;
    animation-duration: 5.4s;
    animation-delay: .9s;
}

.bubble.b10 {
    left: 58%;
    width: 6px;
    height: 6px;
    animation-duration: 3.9s;
    animation-delay: 1.3s;
}

.bubble.b11 {
    left: 64%;
    width: 8px;
    height: 8px;
    animation-duration: 4.1s;
    animation-delay: .4s;
}

.bubble.b12 {
    left: 70%;
    width: 6px;
    height: 6px;
    animation-duration: 3.7s;
    animation-delay: 1.0s;
}

.bubble.b13 {
    left: 76%;
    width: 7px;
    height: 7px;
    animation-duration: 4.3s;
    animation-delay: .7s;
}

.bubble.b14 {
    left: 82%;
    width: 6px;
    height: 6px;
    animation-duration: 3.5s;
    animation-delay: 1.2s;
}

.bubble.b15 {
    left: 88%;
    width: 8px;
    height: 8px;
    animation-duration: 4.4s;
    animation-delay: .1s;
}

/* rise a shorter distance so header height doesn't need to be tall */
@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: .7;
    }

    60% {
        transform: translateY(-120px) scale(1.1);
        opacity: .9;
    }

    100% {
        transform: translateY(-200px) scale(1.15);
        opacity: 0;
    }
}


/* Form */
.login-form {
    padding: 26px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 6px;
}

    .form-row label {
        color: var(--ink);
        font-weight: 600;
        font-size: 14px;
    }

    .form-row input {
        height: 44px;
        padding: 10px 12px;
        font-size: 15px;
        background: #fff;
        border: 1px solid #d9e1ea;
        border-radius: 10px;
        color: var(--ink);
        transition: .2s border-color,.2s box-shadow;
    }

        .form-row input::placeholder {
            color: #a3afbf;
        }

        .form-row input:focus {
            outline: none;
            border-color: var(--brand);
            box-shadow: 0 0 0 4px var(--ring);
        }

/* Meta row */
.form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 16px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

    .link:hover {
        text-decoration: underline;
    }

/* Button */
.btn-primary {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(0,132,209,.25);
    cursor: pointer;
    transition: transform .04s ease, background .2s ease, box-shadow .2s ease;
}

    .btn-primary:hover {
        background: var(--brand-dark);
        box-shadow: 0 10px 18px rgba(0,132,209,.28);
    }

    .btn-primary:active {
        transform: translateY(1px);
    }

/* Alt section */
.alt {
    text-align: center;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
    display: flex;
    gap: 6px;
    justify-content: center;
}

/* Validation */
.validation-summary {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff6f6;
    border: 1px solid #ffd9d9;
    color: #b42318;
    font-size: 14px;
}

/* Footer */
.login-footer {
    padding: 8px 11px 12px;
    text-align: center;
    background: #f9fbfe;
    border-top: 1px solid #eef3fa;
}

    .login-footer p {
        margin: 4px 0;
        color: var(--muted);
    }

    .login-footer strong {
        color: var(--ink);
    }

/* Responsive */
@media (max-width:480px) {
    .login-card {
        border-radius: 14px;
    }

    .login-header h1 {
        font-size: 20px;
    }

    .btn-primary {
        height: 48px;
    }
}
.alt-login {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0;
    color: #888;
}

    .alt-login span {
        flex-grow: 1;
        border-top: 1px solid #ddd;
        margin: 0 10px;
    }

.social-login {
    display: flex;
    justify-content: center;
}

.btn-google {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #444;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: background 0.2s;
}

    .btn-google img {
        width: 20px;
        height: 20px;
    }

    .btn-google:hover {
        background: #f7f7f7;
    }
