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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2D1B3D;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    min-height: 640px;
    display: flex;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(45, 27, 61, 0.45), 0 8px 32px rgba(0, 0, 0, 0.15);
    background: #F5F0E1;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-left {
    flex: 0 0 55%;
    background: #2D1B3D;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3rem 2.5rem;
    min-height: 500px;
}

.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(201, 168, 76, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.login-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        #2D1B3D,
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(201, 168, 76, 0.03) 40px, rgba(201, 168, 76, 0.03) 41px),
        repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(201, 168, 76, 0.03) 40px, rgba(201, 168, 76, 0.03) 41px);
    pointer-events: none;
    z-index: 0;
}

.hotel-scene {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.hotel-building {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hotel-silhouette {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: 180px;
}

.hotel-silhouette .wing {
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.25) 0%, rgba(201, 168, 76, 0.05) 100%);
    border: 1.5px solid rgba(201, 168, 76, 0.20);
    border-radius: 4px 4px 0 0;
    flex: 1;
    min-height: 60px;
    position: relative;
}

.hotel-silhouette .wing:nth-child(1) { height: 120px; flex: 0.8; }
.hotel-silhouette .wing:nth-child(2) { height: 170px; flex: 1.2; }
.hotel-silhouette .wing:nth-child(3) { height: 145px; flex: 1; }
.hotel-silhouette .wing:nth-child(4) { height: 180px; flex: 1.4; }
.hotel-silhouette .wing:nth-child(5) { height: 110px; flex: 0.7; }

.hotel-silhouette .wing::before {
    content: '';
    position: absolute;
    inset: 12px 10px;
    background:
        repeating-linear-gradient(90deg, rgba(201, 168, 76, 0.20) 0px, rgba(201, 168, 76, 0.20) 6px, transparent 6px, transparent 12px),
        repeating-linear-gradient(0deg, rgba(201, 168, 76, 0.20) 0px, rgba(201, 168, 76, 0.20) 6px, transparent 6px, transparent 14px);
    background-size: 18px 18px;
    opacity: 0.6;
    border-radius: 2px;
}

.hotel-entrance {
    position: relative;
    z-index: 3;
    margin-top: -12px;
    width: 60px;
    height: 28px;
    background: linear-gradient(180deg, #C9A84C, #B8923E);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.25), 0 0 80px rgba(201, 168, 76, 0.10);
    border: 1px solid rgba(201, 168, 76, 0.3);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

.hotel-entrance::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background: rgba(201, 168, 76, 0.2);
    border-radius: 50%;
    filter: blur(6px);
}

.brand-text { position: relative; z-index: 2; color: #F5F0E1; text-align: center; }

.brand-text .hotel-name {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #F5F0E1;
    margin-bottom: 0.2rem;
}

.brand-text .hotel-name .gold { color: #C9A84C; }

.brand-text .tagline {
    font-size: 0.95rem;
    color: rgba(245, 240, 225, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

.brand-text .divider-line {
    width: 60px;
    height: 2px;
    background: #C9A84C;
    margin: 0.8rem auto;
    opacity: 0.5;
}

.brand-text .description {
    font-size: 0.9rem;
    color: rgba(245, 240, 225, 0.6);
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

.stars { color: #f0b30c; font-size: 1.2rem; letter-spacing: 4px; margin-top: 0.8rem; opacity: 0.5; }

.login-right {
    flex: 1;
    background: #F5F0E1;
    padding: 3rem 2.8rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

.login-right .form-header { margin-bottom: 2rem; }

.login-right .form-header h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.8rem;
    color: #2D1B3D;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.login-right .form-header p { color: #6B5A7A; font-size: 0.95rem; font-weight: 400; }
.login-right .form-header p i { color: #C9A84C; }

.server-error {
    background: #FBEAEA;
    border: 1.5px solid #E3B8B8;
    color: #8A2E2E;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-floating-custom { position: relative; margin-bottom: 1.2rem; }

.form-floating-custom .form-control {
    border: 1.5px solid #D4C9B5;
    border-radius: 12px;
    padding: 0.9rem 1rem 0.9rem 3rem;
    font-size: 0.95rem;
    background: #FFFFFF;
    min-height: 54px;
    transition: border 0.25s, box-shadow 0.25s;
    color: #2D1B3D;
}

.form-floating-custom .form-control:focus {
    border-color: #C9A84C;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.12);
    background: #FFFFFF;
}

.form-floating-custom .form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8A7A96;
    font-size: 1.2rem;
    pointer-events: none;
    transition: color 0.25s;
}

.form-floating-custom .form-control:focus ~ .form-icon { color: #C9A84C; }

.toggle-pass {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8A7A96;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.2s;
}

.toggle-pass:hover { color: #2D1B3D; }

.login-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0 1.6rem;
    font-size: 0.85rem;
}

.login-options .form-check { margin: 0; }

.login-options .form-check-input {
    border: 1.5px solid #C9B8A0;
    border-radius: 4px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    background-color: #FFFFFF;
    cursor: pointer;
}

.login-options .form-check-input:checked { background-color: #2D1B3D; border-color: #2D1B3D; }

.login-options .form-check-label { color: #4A3A5A; font-weight: 500; margin-left: 4px; cursor: pointer; }

.login-options a {
    color: #2D1B3D;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1.5px dotted rgba(45, 27, 61, 0.2);
    transition: border-color 0.2s;
}

.login-options a:hover { border-bottom-color: #C9A84C; }

.btn-login {
    width: 100%;
    background: #2D1B3D;
    border: none;
    padding: 0.85rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    color: #F5F0E1;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: background 0.25s, transform 0.05s;
    box-shadow: 0 4px 16px rgba(45, 27, 61, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-login:hover { background: #3D2A52; color: #F5F0E1; }
.btn-login:active { transform: scale(0.97); }
.btn-login i { font-size: 1.1rem; }

.login-footer {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.7rem;
    color: #8A7A96;
    letter-spacing: 0.5px;
    border-top: 1px solid #E8DFD0;
    padding-top: 1.5rem;
}

.login-footer i { color: #C9A84C; }

@media (max-width: 992px) {
    .login-left { flex: 0 0 45%; padding: 2rem; }
    .brand-text .hotel-name { font-size: 2rem; }
    .login-right { padding: 2rem 1.8rem; }
}

@media (max-width: 768px) {
    .login-container { flex-direction: column; min-height: auto; border-radius: 20px; max-width: 500px; }
    .login-left { flex: 1; padding: 2.5rem 1.5rem 2rem; min-height: 320px; border-radius: 20px 20px 0 0; }
    .hotel-silhouette { height: 120px; }
    .brand-text .hotel-name { font-size: 1.8rem; }
    .brand-text .description { font-size: 0.8rem; max-width: 260px; }
    .login-right { padding: 2rem 1.5rem; min-height: auto; border-radius: 0 0 20px 20px; }
    .login-right .form-header h2 { font-size: 1.5rem; }
    .login-options { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
}

@media (max-width: 480px) {
    .login-left { padding: 1.8rem 1rem 1.5rem; min-height: 260px; }
    .hotel-silhouette { height: 80px; }
    .hotel-silhouette .wing { min-height: 30px; }
    .hotel-silhouette .wing:nth-child(1) { height: 60px; }
    .hotel-silhouette .wing:nth-child(2) { height: 85px; }
    .hotel-silhouette .wing:nth-child(3) { height: 72px; }
    .hotel-silhouette .wing:nth-child(4) { height: 90px; }
    .hotel-silhouette .wing:nth-child(5) { height: 55px; }
    .hotel-entrance { width: 40px; height: 20px; margin-top: -8px; }
    .brand-text .hotel-name { font-size: 1.4rem; }
    .brand-text .tagline { font-size: 0.7rem; }
    .brand-text .description { font-size: 0.7rem; max-width: 200px; }
    .login-right { padding: 1.5rem 1.2rem; }
    .login-right .form-header h2 { font-size: 1.3rem; }
}

.was-validated .form-control:invalid { border-color: #B13E3E; }
.was-validated .form-control:valid { border-color: #2D1B3D; }
