/* ─── Base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', 'Public Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Login Page ────────────────────────────────────── */
.login-page {
    flex: 1;
    display: flex;
    min-height: calc(100vh - 70px);
    background: linear-gradient(135deg, #f9e8e8 0%, #f2b4b0 40%, #d96b65 100%);
}

.login-page > .container {
    display: flex;
    align-items: stretch;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* ─── Left Branding ─────────────────────────────────── */
.login-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    width: 45%;
}

.login-left h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: #1a1a1a;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.login-left p {
    font-size: 1rem;
    color: #333;
    max-width: 380px;
    line-height: 1.6;
}

/* ─── Right Card ────────────────────────────────────── */
.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 50%;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 44px;
    width: 100%;
    box-shadow: 0px 10px 10px 8px rgb(15 15 15 / 19%);
}

.login-card h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.login-card .subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 32px;
}

/* ─── Form Elements ─────────────────────────────────── */
.form-label-login {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #222;
    margin-bottom: 8px;
}

.form-control-login {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s;
    outline: none;
}

.form-control-login:focus {
    border-color: #c0392b;
    background: #fff;
}

.form-control-login::placeholder {
    color: #bbb;
}

.form-group-login {
    margin-bottom: 20px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .toggle-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 1rem;
}

.form-row-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    margin-top: 4px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #555;
    cursor: pointer;
}

.remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #c0392b;
    cursor: pointer;
}

.forgot-link {
    font-size: 0.875rem;
    color: #555;
    text-decoration: none;
}

.forgot-link:hover {
    color: #c0392b;
}

/* ─── Buttons ───────────────────────────────────────── */
.btn-login {
    width: 100%;
    padding: 15px;
    background: #8B1A1A;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.btn-login:hover   { background: #a61e1e; }
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
}

.divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.divider span {
    font-size: 0.85rem;
    color: #999;
    white-space: nowrap;
}

.btn-google {
    width: 100%;
    padding: 13px;
    background: #fff;
    color: #333;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.btn-google:hover {
    background: #f8f8f8;
    border-color: #ccc;
    color: #333;
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* ─── Misc ──────────────────────────────────────────── */
.signup-text {
    text-align: center;
    margin-top: 22px;
    font-size: 0.875rem;
    color: #888;
}

.signup-text a {
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: none;
}

.signup-text a:hover { color: #c0392b; }

.alert-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #c0392b;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
    .login-left { display: none; }
    .login-right {
        flex: 1;
        padding: 0 16px;
    }
}

@media (max-width: 500px) {
    .login-card { padding: 32px 24px; }
}
