﻿
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5f2;
    overflow: hidden;
    position: relative;
}

/* Full-bleed hero background */
.hero-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* Large soft shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(0px);
}

.shape-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle at 40% 40%, #c5f0e8 0%, #a8e6d8 45%, transparent 70%);
    top: -180px;
    left: -180px;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #fde8d0 0%, #fbd5b5 40%, transparent 68%);
    bottom: -160px;
    right: -160px;
}

.shape-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #d4eaff 0%, #bdd8f7 50%, transparent 70%);
    top: 55%;
    left: 12%;
    opacity: .7;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #fdf0c2 0%, #fae59a 50%, transparent 70%);
    top: 8%;
    right: 14%;
    opacity: .8;
}

/* Subtle dot grid */
.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #9ecec4 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .18;
}

/* Floating card */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 400px;
    padding: 1rem;
    animation: floatIn .55s cubic-bezier(.22,.68,0,1.15) both;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-radius: 24px;
    padding: 2.4rem 2.25rem 2rem;
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.07), 0 32px 64px rgba(55,198,171,0.1);
}

/* Greeting + avatar row */
.greeting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.6rem;
}

.greeting-text h1 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a2e29;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.greeting-text p {
    font-size: .825rem;
    color: #6b8f88;
    margin-top: .25rem;
    font-weight: 400;
}

.wave-emoji {
    font-size: 2rem;
    line-height: 1;
    animation: wave 1.8s ease-in-out 0.6s 2;
    transform-origin: 70% 80%;
    display: inline-block;
}

@keyframes wave {
    0%,100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(18deg);
    }

    40% {
        transform: rotate(-8deg);
    }

    60% {
        transform: rotate(14deg);
    }

    80% {
        transform: rotate(-4deg);
    }
}

/* Pill tabs: Email / SSO */
.auth-tabs {
    display: flex;
    background: #f0faf7;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.5rem;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 9px;
    padding: .42rem .5rem;
    font-size: .8125rem;
    font-weight: 600;
    color: #6b8f88;
    cursor: pointer;
    transition: background .18s, color .18s, box-shadow .18s;
}

    .auth-tab.active {
        background: #fff;
        color: #1a2e29;
        box-shadow: 0 1px 6px rgba(0,0,0,0.09);
    }

/* Labels */
.form-label {
    font-size: .78rem;
    font-weight: 600;
    color: #3d5a54;
    margin-bottom: .38rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

/* Pill inputs */
.form-control {
    border: 1.5px solid #d4ece6;
    border-radius: 12px;
    padding: .68rem 1rem;
    font-size: .875rem;
    color: #1a2e29;
    background: #f7fdfc;
    transition: border-color .18s, box-shadow .18s, background .18s;
    box-shadow: none;
}

    .form-control::placeholder {
        color: #9dbfb9;
    }

    .form-control:focus {
        background: #fff;
        border-color: #37c6ab;
        box-shadow: 0 0 0 3.5px rgba(55,198,171,0.15);
        outline: none;
    }

.input-wrap {
    position: relative;
}

    .input-wrap .input-icon {
        position: absolute;
        left: .95rem;
        top: 50%;
        transform: translateY(-50%);
        width: 15px;
        height: 15px;
        color: #9dbfb9;
        pointer-events: none;
        transition: color .18s;
    }

    .input-wrap:focus-within .input-icon {
        color: #37c6ab;
    }

    .input-wrap .form-control {
        padding-left: 2.5rem;
    }

.toggle-pw {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #9dbfb9;
    display: flex;
    align-items: center;
    transition: color .15s;
}

    .toggle-pw:hover {
        color: #37c6ab;
    }

    .toggle-pw svg {
        width: 15px;
        height: 15px;
    }

/* Options */
.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.form-check-input {
    width: 15px;
    height: 15px;
    border: 1.5px solid #b2d8d0;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 0;
}

    .form-check-input:checked {
        background-color: #37c6ab;
        border-color: #37c6ab;
    }

    .form-check-input:focus {
        box-shadow: 0 0 0 3px rgba(55,198,171,0.18);
    }

.form-check-label {
    font-size: .8rem;
    color: #6b8f88;
    cursor: pointer;
    padding-left: .2rem;
}

.forgot-link {
    font-size: .8rem;
    color: #37c6ab;
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}

    .forgot-link:hover {
        color: #29a98f;
        text-decoration: underline;
    }

/* Submit */
.btn-login {
    width: 100%;
    padding: .78rem 1rem;
    background: linear-gradient(135deg, #37c6ab 0%, #29a98f 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .14s, box-shadow .18s, opacity .18s;
    box-shadow: 0 4px 16px rgba(55,198,171,0.38);
    position: relative;
    overflow: hidden;
}

    .btn-login::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.14), transparent);
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(55,198,171,0.42);
    }

    .btn-login:active {
        transform: translateY(0);
    }

/* Sign up footer */
.signup-row {
    text-align: center;
    margin-top: 1.35rem;
    font-size: .8rem;
    color: #6b8f88;
}

    .signup-row a {
        color: #37c6ab;
        font-weight: 700;
        text-decoration: none;
        transition: color .15s;
    }

        .signup-row a:hover {
            color: #29a98f;
            text-decoration: underline;
        }

/* Trust badges */
.trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    color: #7aada6;
    font-weight: 500;
}

    .trust-badge svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
    }

/* SSO panel */
.sso-panel {
    display: none;
}

    .sso-panel.visible {
        display: block;
    }

.email-panel {
    display: block;
}

    .email-panel.hidden {
        display: none;
    }

.btn-sso-provider {
    width: 100%;
    padding: .68rem 1rem;
    background: #f7fdfc;
    border: 1.5px solid #d4ece6;
    border-radius: 12px;
    color: #1a2e29;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

    .btn-sso-provider:hover {
        background: #fff;
        border-color: #a8d8d0;
        box-shadow: 0 2px 10px rgba(55,198,171,0.12);
    }

    .btn-sso-provider:last-child {
        margin-bottom: 0;
    }
