*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --red: #e8180d;
    --red-hover: #c41209;
    --dark: #0d0d0d;
    --white: #ffffff;
    --radius: 20px;
    --input-radius: 10px;
}

/* ─── PAGE LAYOUT ─── */
html,
body {
    height: 100%;
    font-family: 'Barlow', sans-serif;
    color: var(--dark);
}

/* Full-page background image placeholder */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #c8c8c8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Drop your real background photo here */
.page-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Subtle light overlay to keep left text readable */
.page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    
}

/* Camera icon shown when no bg image is set */
.bg-ph-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
    pointer-events: none;
}

.bg-ph-icon svg {
    width: 64px;
    height: 64px;
    opacity: 0.25;
}

.bg-ph-icon span {
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #333;
    opacity: 0.4;
}

/* ─── MAIN CONTENT ─── */
.page-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 60px 72px;
    gap: 48px;
}

/* ─── LEFT COLUMN ─── */
.left-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Logo */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
    width: fit-content;
}

.logo-mark {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--dark);
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.logo-mark img {
    height: 100px;
    width: auto;
}

.logo-mark .two {
    font-size: 3rem;
}

.logo-mark .fast {
    font-style: italic;
    letter-spacing: 3px;
    color: var(--red);
}

.logo-sub {
    font-size: 0.58rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #555;
    margin-top: 2px;
    padding-left: 2px;
}

/* Heading */
.left-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1.1;
    color: #fff;
    max-width: 520px;
}

/* Body text */
.left-body {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
    color: #ffffff;
    max-width: 480px;
}

/* About Us button */
.btn-about {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 50px;
    padding: 16px 48px;
    width: fit-content;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(232, 24, 13, 0.3);
}

.btn-about:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(232, 24, 13, 0.42);
}

/* ─── RIGHT COLUMN — LOGIN CARD ─── */
.right-col {
    display: flex;
    justify-content: flex-end;
}

.login-card {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 52px 48px 48px;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 6px 18px rgba(0, 0, 0, 0.2);
}

.card-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    font-style: italic;
    color: var(--white);
    line-height: 1.1;
}

.fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fields input {
    width: 100%;
    background: var(--white);
    border: none;
    border-radius: var(--input-radius);
    padding: 18px 20px;
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    outline: none;
    transition: box-shadow 0.2s;
}

.fields input::placeholder {
    color: #888;
}

.fields input:focus {
    box-shadow: 0 0 0 3px rgba(232, 24, 13, 0.45);
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.btn-signin {
    background: var(--red);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 50px;
    padding: 16px 52px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(232, 24, 13, 0.35);
}

.btn-signin:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 24, 13, 0.48);
}

.signup-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}

.signup-link:hover {
    color: #ff3b30;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-col {
    animation: fadeUp 0.5s 0.1s ease both;
}

.login-card {
    animation: fadeUp 0.5s 0.2s ease both;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .page-content {
        grid-template-columns: 1fr;
        padding: 48px 32px;
        gap: 40px;
    }

    .right-col {
        justify-content: center;
    }

    .login-card {
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .page-content {
        padding: 36px 20px;
    }

    .left-heading {
        font-size: 2.2rem;
    }

    .login-card {
        padding: 36px 24px;
    }

    .card-footer {
        gap: 20px;
    }
}