/* ==========================================================================
   ALMA RESORT - LOGIN PAGE STYLES (Clean Ocean Blue Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    background: #f0f4f8;
    color: #334155;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* MAIN CARD */
.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0, 50, 100, 0.08);
    border: 1px solid #e2e8f0;
}

/* LOGO & BRAND */
.card-logo {
    text-align: center;
    margin-bottom: 24px;
}

.card-logo img {
    height: 48px;
    width: auto;
    filter: brightness(0.15); /* Renders white logo crisply in dark navy on white */
    margin-bottom: 12px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* FORM CONTROLS */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.form-control {
    width: 100%;
    height: 44px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 42px 0 40px;
    color: #0f172a;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.toggle-password {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #0284c7;
}

/* SUBMIT BUTTON - SOLID OCEAN BLUE */
.btn-submit {
    width: 100%;
    height: 46px;
    background: #0284c7;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #0369a1;
}

.btn-submit:active {
    background: #075985;
    transform: scale(0.99);
}

.btn-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* BACK TO HOME LINK */
.back-link-wrapper {
    margin-top: 20px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* ALERTS */
.alert-box {
    display: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* SPINNER */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* FOOTER */
.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: #94a3b8;
}


/* HIGH SPECIFICITY MOBILE MENU CENTER LOGO */
.menu_logo,
.logo.menu_logo {
    display: block !important;
    text-align: center !important;
    margin-bottom: 24px !important;
}

.menu_logo a,
.logo.menu_logo a {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

.menu_logo a img,
.menu_logo img,
.logo.menu_logo a img,
.logo.menu_logo img {
    width: 95px !important;
    min-width: 95px !important;
    max-width: 95px !important;
    height: auto !important;
    max-height: none !important;
    display: inline-block !important;
    margin: 0 auto !important;
    transform: none !important;
}

@media (max-width: 480px) {
    body {
        padding: 16px 12px;
    }
    .login-card {
        padding: 28px 20px;
        border-radius: 10px;
    }
    .card-title {
        font-size: 18px;
    }
    .form-control {
        font-size: 15px; /* Prevents auto-zoom on iOS */
    }
}
