﻿:root {
    --login-radius: 8px;
}

.login-page {
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 24px 60px;
    position: relative;
    box-sizing: border-box;
    /*backdrop-filter: blur(14px);*/
    background: var(--login-bg-image, url('/Content/Apps/Member/img/login-background.jpg')) center center / cover no-repeat;
}

    .login-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(15,15,15,0) 0%, rgba(15,15,15,0.85) 85%, #0F0F0F 100% );
        z-index: 0;
    }

    .login-page::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.25); 
        z-index: 0;
    }

    .login-page > * {
        position: relative;
        z-index: 1;
    }

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 96px;
    height: 96px;
    border-radius: var(--login-radius);
    margin: 0 auto 18px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.35);
    font-size: 40px;
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

    .login-logo img {
        max-height: 100%;
        max-width: 100%;
    }

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 14px;
    color: #d0d0e5;
}

.login-card {
    background: rgba(0,0,0,0.09);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--login-radius);
    padding: 24px 20px;
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}

.login-form-group {
    margin-bottom: 20px;
}

.login-label {
    display: block;
    font-size: 13px;
    color: #cfcfe8;
    margin-bottom: 6px;
}

.login-input {
    width: 100%;
    height: 48px;
    border-radius: var(--login-radius);
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
    padding: 10px 14px;
    font-size: 15px;
    color: #ffffff;
    box-sizing: border-box;
}

    .login-input:focus {
        outline: none;
        border-color: rgba(255,255,255,0.35);
        background: rgba(255,255,255,0.16);
    }

.login-button {
    width: 100%;
    height: 52px;
    border-radius: var(--login-radius);
    border: none;
    background: linear-gradient(135deg, #A5B9C7, #698BA1);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

    .login-button:hover {
        background: #0F0F0F;
    }


.login-error {
    display: none;
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 80, 80, 0.35);
    color: #ffb3b3;
    padding: 14px 16px;
    border-radius: var(--login-radius);
    margin-bottom: 20px;
    font-size: 15px;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

    .login-error.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

.hotel-search-wrapper {
    position: relative;
}

.hotel-results {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 45vh;
    background: #1c1c1c;
    border-top: 1px solid #333;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    padding: 12px 0;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    transform: translateY(100%);
    transition: transform 0.25s ease-out;
    -webkit-overflow-scrolling: touch;
}

    .hotel-results.show {
        display: block;
        transform: translateY(0);
    }

.hotel-result-item {
    padding: 14px 18px;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
}

    .hotel-result-item:last-child {
        border-bottom: none;
    }

    .hotel-result-item:hover {
        background: #2a2a2a;
    }

.hotel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

    .hotel-backdrop.show {
        display: block;
        opacity: 1;
    }

.hotel-shimmer {
    height: 120px;
    background: linear-gradient(90deg, #222 25%, #333 50%, #222 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 6px;
    margin-top: 6px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.recent-hotels {
    margin-top: 10px;
}

.recent-hotel-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 6px;
}

.recent-hotel-item {
    flex: 1;
    cursor: pointer;
}

.recent-hotel-delete {
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    padding: 0 6px;
}

    .recent-hotel-delete:hover {
        color: #fff;
    }

/* ── Desktop: constrain to phone-width column ────────────────────────── */
@media (min-width: 480px) {
    body {
        overflow: auto;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-height: 100dvh;
        background: #1a1a2e;
    }

    .login-shell {
        width: 430px;
        max-width: 430px;
        flex-shrink: 0;
    }

    .login-page {
        min-height: 100dvh;
        width: 430px;
    }

    /* Hotel results bottom-sheet: constrain to the 430px column */
    .hotel-results,
    .hotel-backdrop {
        left: calc(50% - 215px) !important;
        right: auto !important;
        width: 430px !important;
    }
}