﻿
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    /* display: flex; */
    align-items: stretch;
    justify-content: center;
    padding: 40px 124px 30px 112px;
    background: #eef0eb;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    overflow: hidden;
    border-radius: 27.5px;
    box-shadow: 0 10px 30px 0 rgba(172, 168, 168, 0.43);
}

/* ── Left panel ── */
.panel-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    background: #c9e8d8;
    display: flex;
    flex-direction: column;
}

.spa-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #e8f5ee 0%, #c9e8d8 40%, #a8d4be 70%, #8bbfaa 100%);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

    .spa-placeholder svg {
        width: 100%;
        height: 100%;
    }

@keyframes sway {
    0%,100% {
        transform: rotate(-2deg)
    }

    50% {
        transform: rotate(2deg)
    }
}

@keyframes rise {
    0%,100% {
        opacity: .45;
        transform: translateY(0) scaleX(1)
    }

    50% {
        opacity: .08;
        transform: translateY(-18px) scaleX(0.4)
    }
}

@keyframes flicker {
    0%,100% {
        opacity: .9
    }

    40% {
        opacity: .5
    }

    65% {
        opacity: 1
    }
}

@keyframes floatA {
    0%,100% {
        transform: translateY(0px)
    }

    50% {
        transform: translateY(-7px)
    }
}

@keyframes floatB {
    0%,100% {
        transform: translateY(0px)
    }

    50% {
        transform: translateY(-6px)
    }
}

@keyframes floatC {
    0%,100% {
        transform: translateY(0px)
    }

    50% {
        transform: translateY(-8px)
    }
}

@keyframes floatD {
    0%,100% {
        transform: translateY(0px)
    }

    50% {
        transform: translateY(-5px)
    }
}

.sway {
    animation: sway 4s ease-in-out infinite;
    transform-origin: center bottom;
}

.sway2 {
    animation: sway 5.5s ease-in-out infinite 1s;
    transform-origin: center bottom;
}

.smoke {
    animation: rise 3s ease-out infinite;
}

.smoke2 {
    animation: rise 3.8s ease-out infinite 1.2s;
}

.flame {
    animation: flicker 2s ease-in-out infinite;
}

.fb1 {
    animation: floatA 3.8s ease-in-out infinite 0s;
}

.fb2 {
    animation: floatB 4.4s ease-in-out infinite 0.6s;
}

.fb3 {
    animation: floatC 3.5s ease-in-out infinite 1.2s;
}

.fb4 {
    animation: floatD 4.8s ease-in-out infinite 1.8s;
}

/* SVG badges — visible on desktop, hidden on mobile */
.svg-badges {
    display: block;
}
/* HTML badge strip — hidden on desktop, shown on mobile */
.mobile-badges {
    display: none;
}

.panel-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem;
    background: #ffffff;
}

.form-box {
    width: 100%;
    max-width: 360px;
}

.brand {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
    margin-bottom: 0.2rem;
    font-size: 60px;
}

    .brand span {
        color: #5a9e84;
    }

.tagline {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.6rem;
    font-weight: 400;
}

.field {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #444;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrap input {
        width: 100%;
        height: 44px;
        padding: 0 3rem 0 2.6rem;
        border: 1.5px solid #72d3ac;
        border-radius: 10px;
        font-size: 16px;
        color: #111;
     /*   background: #fafaf8;*/
        outline: none;
        transition: border-color 0.18s, box-shadow 0.18s;
        -webkit-appearance: none;
    }

        .input-wrap input::placeholder {
            color: #c0bdb8;
        }

        .input-wrap input:focus {
            border-color: #5a9e84;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(90,158,132,0.12);
        }

.input-icon {
    position: absolute;
    left: 12px;
    color: #329166;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.input-wrap input.has-icon {
    padding-left: 2.6rem;
}

.toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.15s;
}

    .toggle-pw:hover {
        color: #555;
    }

.btn-login {
    width: 100%;
    height: 46px;
    margin-top: 0.4rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s;
}

    .btn-login:hover {
        background: #333;
    }

    .btn-login:active {
        transform: scale(0.985);
    }

.forgot-wrap {
    text-align: center;
    margin-top: 0.9rem;
}

    .forgot-wrap a {
        font-size: 0.85rem;
        color: #5a9e84;
        text-decoration: none;
        font-weight: 500;
    }

        .forgot-wrap a:hover {
            text-decoration: underline;
        }

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #bbb;
}

/* ── Mobile ── */
@media (max-width: 680px) {
    html, body {
        overflow: auto;
    }

    body {
        padding: 0.4vh 5px;
        align-items: flex-start;
        height: auto;
        min-height: 100vh;
        background-color:transparent;
    }
    
    .login-container {
        display: flex;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
        overflow: hidden;
        flex-direction: column;
        max-height: none;
        height: auto;
        box-shadow: 0 0 0 0;
    }

    .form-box {
        width: 100%;
        max-width: 360px;
        padding-top: 10px;
    }
   

    .panel-image {
        max-height: 150px;
        /* display:none;*/
    }

    .panel-form {
        padding: 1.5rem 1.25rem;
    }

    .brand {
        font-size: 1.8rem;
    }

    /* Hide SVG badges on mobile */
    .svg-badges {
        display: none;
    }

    /* Show and animate HTML badges on mobile */
    .mobile-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        padding: 6px 12px 20px;
        /* background: linear-gradient(to bottom, rgba(200, 232, 215, 0.95) 60%, rgba(200, 232, 215, 0) 100%); */
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
    }

    .mobile-badge {
        display: flex;
        align-items: center;
        gap: 5px;
        background: rgba(255,255,255,0.88);
        border-radius: 100px;
        padding: 5px 11px 5px 8px;
        font-size: 0.7rem;
        font-weight: 600;
        color: #2a5c42;
        white-space: nowrap;
        animation: floatA 4s ease-in-out infinite;
    }

        .mobile-badge:nth-child(2) {
            animation: floatB 4.4s ease-in-out infinite 0.5s;
        }

        .mobile-badge:nth-child(3) {
            animation: floatC 3.8s ease-in-out infinite 1s;
        }

        .mobile-badge:nth-child(4) {
            animation: floatD 5s ease-in-out infinite 1.5s;
        }

    .mb-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        flex-shrink: 0;
    }
}

select.has-icon {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    appearance: none;
    cursor: pointer;
}
.btn-group-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
}

.btn-outline-action,
.btn-go-home {
    flex: 1 1 0; /* ← both equal width */
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Logout — outlined */
.btn-outline-action {
    border: 1.8px solid #5a9e84;
    color: #5a9e84;
    background: transparent;
}

    .btn-outline-action:hover {
        background: #5a9e84;
        color: #ffffff;
    }

/* Go Home — solid green */
.btn-go-home {
    border: 1.8px solid #5a9e84;
    background: #5a9e84;
    color: #ffffff;
}

    .btn-go-home:hover {
        background: #4a8a72;
        border-color: #4a8a72;
        color: #ffffff;
    }
.error-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}
