:root {
    --teal-600: #00c3b3;
    --teal-500: #00b4a6;
    --teal-400: #06b6d4;
}
html,
body {
    height: 100%;
    margin: 0;
    font-family: Inter, system-ui, Arial, sans-serif;
    background: #f7fafc;
}
.left-side {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #003233 0%, #08b6a0 100%);
    color: rgba(255, 255, 255, 0.98);
}
.left-inner {
    max-width: 720px;
    padding: 72px 48px;
    text-align: center;
}
.logo {
    display: inline-block;
    margin-bottom: 24px;
}
.logo img {
    max-width: 180px;
    width: 100%;
    height: auto;
    opacity: 0.95;
}
.left-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 10px 0 6px;
    color: rgba(255, 255, 255, 0.98);
}
.left-sub {
    opacity: 0.9;
    margin-top: 6px;
}

.right-side {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 64px;
}
.form-box {
    width: 100%;
    max-width: 460px;
}
.small {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}
.heading {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}
.sub {
    color: #6b7280;
    margin-bottom: 26px;
}

label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 8px;
}
.input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e6e9ef;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
}
.input:focus {
    border-color: var(--teal-500);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.12);
}
.input.error {
    border-color: #ef4444;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.08);
}
.error-text {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}
.forgot {
    font-size: 14px;
    color: #0f172a;
    text-decoration: none;
}

.login-btn {
    display: inline-block;
    width: 100%;
    background: var(--teal-500);
    color: #fff;
    padding: 16px 22px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    margin-top: 24px;
}

.foot-links {
    margin-top: 18px;
    color: #6b7280;
}
.foot-links a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

/* Make logo and title larger on wide screens to match reference */
@media (min-width: 1100px) {
    .left-inner { max-width: 700px; padding: 72px; }
    .logo img { max-width: 200px; }
    .left-title { font-size: 48px; }
    .left-sub { font-size: 14px; }
}

/* Slightly reduce right-side padding on medium screens */
@media (max-width: 1200px) and (min-width: 900px) {
    .right-side { padding: 64px 48px; width: 460px; }
}

@media (max-width: 900px) {
    .split {
        flex-direction: column;
    }
    .right-side {
        width: 100%;
        padding: 36px;
    }
    .left-side {
        padding: 36px;
        /* Make left header section smaller on mobile */
        min-height: 220px;
        display:flex;
        align-items:center;
    }
}

/* Extra small devices: tighten spacing and scale logo/form for phones */
@media (max-width: 480px) {
    .left-inner { padding: 20px; }
    .left-title { font-size: 24px; }
    .heading { font-size: 24px; }
    .right-side { padding: 24px; }
    .form-box { padding-top: 8px; }
    .actions { flex-direction: column; align-items: flex-start; gap: 8px; }
    .forgot { margin-top: 6px; }
}

/* Make Bootstrap checkboxes match the custom form styling */
.form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1.5px solid #e6e9ef;
    background-color: #fff;
    box-shadow: none;
    margin-top: 0.15rem;
}
.form-check-input:checked {
    background-color: var(--teal-500);
    border-color: var(--teal-500);
}
.form-check-label {
    color: #374151;
}

@media (max-width: 480px) {
    .form-check-input { margin-top: 0.1rem; }
}
