/* ==== LOGIN / REGISTER PAGE ==== */

/* Page background and scroll behavior */
body {
    background: url('/images/HomeBusiness_image.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 0;
        pointer-events: none; /* 🔥 THIS FIXES CLICK BLOCKING */
    }

.auth-layout {
    color: #333;
}

/* Login/Register layout */
.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 3rem 1rem;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo {
    max-width: 200px;
    margin: 0 auto 2rem auto;
    height: auto;
    display: block;
}

/* Login/Registration form */
.login-form {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.25), 
        0 0 18px rgba(255, 0, 0, 0.18), 
        0 0 0 1px rgba(255, 0, 0, 0.12);
}

.login-form input {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}


/* Form labels and inputs */
.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Button */
.login-form button {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-form button:hover {
    background-color: darkred;
}


/* CTA button (shared action button in navbar + pages) */
/*.cta-btn {
    background: linear-gradient(135deg, #ff2a2a, #cc0000);
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
    transition: all 0.2s ease;
}

    .cta-btn:hover {
        background: linear-gradient(135deg, #ff3a3a, #a80000);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(255, 0, 0, 0.35);
    }*/

/* Secondary button */
/*.secondary-btn {
    border: 1px solid #fff;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    color: #fff;
    transition: all 0.2s ease;
}

    .secondary-btn:hover {
        background: rgba(255,255,255,0.1);
    }*/

.cta-btn,
.secondary-btn {
    display: inline-block;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.cta-btn {
    background: linear-gradient(135deg, #ff2a2a, #cc0000);
    color: #fff;
    border: 1px solid transparent; /* keeps same height as secondary */
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
}
    .cta-btn:hover {
        background: linear-gradient(135deg, #ff3a3a, #a80000);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(255, 0, 0, 0.35);
    }

.secondary-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}
    .secondary-btn:hover {
        background: rgba(255,255,255,0.1);
    }

/* Forgot password */
.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

/* Footer */
/*.login-footer {
    text-align: center;
    padding: 1rem;
    background: #111;
    color: #aaa;
    font-size: 0.85rem;
}

.login-footer a {
    color: #aaa;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}

.login-footer a:hover {
   color: #fff;
}*/

/* Create account section */
.create-account {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #555;
}

.create-account-top {
    text-align: center;
    margin: 0.4rem 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.3;
}

.create-account a,
.create-account-top a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.create-account a:hover,
.create-account-top a:hover {
    text-decoration: underline;
}

/* Generate password link (register page only) */
.generate-password {
    text-align: right;
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.generate-password a {
    color: var(--primary-color);
    text-decoration: none;
}

.generate-password a:hover {
    text-decoration: underline;
}

/* Password match warning */
.password-match {
    font-size: 0.85rem;
    color: #d00;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    display: none;
}

/* === Responsive tweaks for mobile === */
@media (max-width: 768px) {

    /* FIX: mobile viewport height issue (prevents footer gap) */
    body {
        min-height: 100dvh;
    }

    .login-container {
        padding: 2rem 1rem;
        flex: 1 1 auto;
    }

    .login-form {
        padding: 1.5rem;
        box-shadow: none; /* cleaner look on small screens */
        border: 1px solid #ddd;
    }

    .logo {
        max-width: 160px;
        margin-bottom: 1.5rem;
    }
}

.account-terms {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin: 0.4rem 0 1rem;
    line-height: 1.3;
}

.account-terms a {
    color: var(--primary-color);
    text-decoration: none;
}

.account-terms a:hover {
    text-decoration: underline;
}


/* Password Strength */
.password-strength {
    height: 6px;
    background: #ddd;
    border-radius: 4px;
    margin: 0.5rem 0 1rem;
    overflow: hidden;
}

#strengthBar {
    height: 100%;
    width: 0%;
    background: #ff2a2a;
    transition: all 0.3s ease;
}

/* Rules list */
.password-rules {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

    /* Base state (neutral, readable) */
    .password-rules li {
        color: #111; /* or #fff if dark form */
        margin-bottom: 0.25rem;
        position: relative;
        padding-left: 1.5rem;
        transition: all 0.2s ease;
    }

        /* Hide icon by default */
        .password-rules li::before {
            content: "";
            position: absolute;
            left: 0;
        }

        /* Only show checkmark when valid */
        .password-rules li.valid::before {
            content: "✔";
            color: #ff2a2a; /* brand red */
        }

/* Warrning that email exits */
.validation-summary {
    background: rgba(255, 0, 0, 0.18);
    border: 1px solid rgba(255, 0, 0, 0.5);
    color: #fff;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700; /* 👈 bold */
    text-align: center; /* 👈 center text */
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.25);
}

    .validation-summary ul {
        list-style: none;
        margin: 0;
        padding-left: 1rem;
    }

.field-error {
    color: #ff4d4d;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.3rem;
    font-weight: 500;
}

.remember-me {
    width: 100%;
    margin: 0.75rem 0 1rem;
    display: flex;
    justify-content: flex-start; /* forces left alignment */
}

/* IMPORTANT: turn label into proper row container */
.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    font-weight: normal;
}

    /* checkbox sizing */
    .remember-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: var(--primary-color);
    }

    /* prevent weird line breaks */
    .remember-label span {
        display: inline-block;
        line-height: 1;
    }