:root {
    --primary-orange: #e94b00;
    --primary-orange-hover: #d24300;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
}

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

/* width:100% (not 100vw — 100vw includes the vertical scrollbar, which
   made the page a few px too wide and added a horizontal scrollbar).
   Layout/padding live on body only; html just fills the window. */
html {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #faf5f0;
    background-image: url('https://dev.sehyog.world/wp-content/uploads/2026/08/ChatGPT-Image-Aug-31_-2026_-04_36_45-PM.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 24px 0; /* room above/below a card taller than the screen */
}

/* Glassmorphism centered card for forgot/reset password */
.auth-card-glassmorphism {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body.auth-glassmorphism {
    background: linear-gradient(rgba(233, 75, 0, 0.25), rgba(0, 0, 0, 0.7)),
                url('https://plain-apac-prod-public.komododecks.com/202609/21/2WyVMW2K1ZenrTXGFNcc/image.jpg') no-repeat center center/cover;
}

.auth-card {
    display: flex;
    width: 900px;
    min-height: 560px; /* grows when a notice is shown */
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(233, 75, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(233, 75, 0, 0.1);
}

.auth-card__brand {
    position: absolute;
    display: none;
}

.auth-image-side {
    flex: 1;
    background: linear-gradient(135deg, rgba(233, 75, 0, 0.65), rgba(20, 20, 20, 0.75)),
                url('https://plain-apac-prod-public.komododecks.com/202609/21/2WyVMW2K1ZenrTXGFNcc/image.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: #ffffff;
}

.auth-image-side h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.auth-image-side p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.auth-form-side {
    width: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px;
    background-color: #ffffff;
}

.logo-area {
    text-align: center;
    margin-bottom: 16px;
}

.logo-area span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-orange);
    display: inline-block;
    margin-bottom: 0;
}

.form-header {
    margin: 20px 0 24px 0;
}

.form-header h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.login-header {
    text-align: center;
    margin: 24px 0 32px 0;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

.login-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    letter-spacing: 0.2px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

form {
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    line-height: 1.5;
}

.form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(233, 75, 0, 0.12);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.85rem;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    accent-color: var(--primary-orange);
}

.forgot-password {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 13px 16px;
    background-color: var(--primary-orange);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    letter-spacing: 0.3px;
    line-height: 1.5;
    margin-top: 8px;
}

.btn-submit:hover {
    background-color: var(--primary-orange-hover);
}

.form-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert--success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert--error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert--info {
    background-color: #fff7f2;
    color: #7c2d12;
    border: 1px solid #fed7c3;
    line-height: 1.5;
}

.alert__link { color: inherit; font-weight: 700; text-decoration: underline; }


.tenant-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 20px;
    line-height: 1.6;
}

@media (max-width: 850px) {
    .auth-card {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    .auth-image-side {
        display: none;
    }
    .auth-form-side {
        width: 100%;
        padding: 30px;
    }
}
