/* =========================================================
   LOGIN PAGE
   ========================================================= */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   LOGIN CONTAINER
   ========================================================= */

.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin: 20px;
}

.login-container.register-page {
    height: auto;
    min-height: 600px;
}


/* =========================================================
   LEFT SIDE
   ========================================================= */

.login-left {
    flex: 1;
    background: #f8f6f0;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-left.register-full {
    flex: 1;
    background: #f8f6f0;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}


/* =========================================================
   LOGIN HEADER
   ========================================================= */

.login-header h1 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 18px;
    font-weight: 600;
}


/* =========================================================
   LOGO + HOTEL NAME
   ========================================================= */

.login-company-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.login-company-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}

.login-company-name {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
}


/* =========================================================
   HEADER DESCRIPTION
   ========================================================= */

.login-header p {
    color: #666;
    font-size: 14px;
    margin-bottom: 40px;
    line-height: 1.5;
}


/* =========================================================
   LOGIN FORM
   ========================================================= */

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.08);
}

.form-group input::placeholder {
    color: #999;
}


/* =========================================================
   FORM OPTIONS
   ========================================================= */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1e40af;
}

.remember-me span {
    font-size: 13px;
    color: #666;
}

.forgot-password {
    font-size: 13px;
    color: #1e40af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #3b82f6;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-button {
    width: 100%;
    padding: 16px;
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.login-button:hover {
    background: #3b82f6;
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}


/* =========================================================
   CREATE ACCOUNT
   ========================================================= */

.no-account {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.no-account p {
    margin: 0;
}

.no-account a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.no-account a:hover {
    color: #3b82f6;
    text-decoration: underline;
}


/* =========================================================
   FILE INPUT
   ========================================================= */

.form-group input[type="file"] {
    padding: 10px 16px;
    height: auto;
}


/* =========================================================
   HELP TEXT
   ========================================================= */

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #888;
    line-height: 1.4;
}


/* =========================================================
   TEXTAREA
   ========================================================= */

.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #1e40af;
}


/* =========================================================
   RIGHT SIDE — IMAGE ONLY
   ========================================================= */

.login-right {
    flex: 1;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}


/* =========================================================
   HOTEL IMAGE
   ========================================================= */

.login-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* =========================================================
   DEFAULT IMAGE
   ========================================================= */

.login-image.default-image {
    background-image: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    background-color: #0f172a;
}


/* =========================================================
   NO IMAGE OVERLAY
   ========================================================= */

/*
   The previous image overlay has been removed.
   The right side now displays only the hotel image.
*/


/* =========================================================
   HIDE OLD RIGHT-SIDE CONTENT
   ========================================================= */

.login-right-content {
    display: none;
}

.login-brand-info {
    display: none;
}


/* =========================================================
   ERROR MESSAGES
   ========================================================= */

.errorlist {
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 16px;
    padding: 12px;
    background: #fef2f2;
    border-radius: 6px;
    border-left: 3px solid #dc2626;
    list-style: none;
}


/* =========================================================
   REGISTER PAGE
   ========================================================= */

.login-container.register-page .login-right {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .login-container {
        flex-direction: column;
        height: auto;
        margin: 10px;
    }

    .login-left {
        padding: 40px 30px;
    }

    .login-right {
        height: 300px;
        min-height: 300px;
    }

    .login-image {
        min-height: 300px;
    }

    .no-account {
        margin-top: 20px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    body {
        align-items: flex-start;
        padding-top: 10px;
    }

    .login-container {
        margin: 10px;
        border-radius: 14px;
    }

    .login-left {
        padding: 35px 24px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .login-company-brand {
        gap: 11px;
    }

    .login-company-logo {
        width: 50px;
        height: 50px;
    }

    .login-company-name {
        font-size: 19px;
    }

    .login-header p {
        margin-bottom: 30px;
    }

    .form-options {
        gap: 10px;
    }

    .remember-me span,
    .forgot-password {
        font-size: 12px;
    }

    .login-right {
        height: 240px;
        min-height: 240px;
    }

    .login-image {
        min-height: 240px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .login-left {
        padding: 30px 18px;
    }

    .login-company-brand {
        gap: 9px;
    }

    .login-company-logo {
        width: 45px;
        height: 45px;
    }

    .login-company-name {
        font-size: 17px;
    }

    .form-options {
        align-items: flex-start;
    }

    .forgot-password {
        text-align: right;
    }

}