﻿/* ================= ROOT VARIABLES ================= */
:root {
    --bg-main: #fbf4f2;
    --text-main: #222;
    --muted: #555;
    --accent: #ef0039;
    --primary: #1d3557;
    --success: #22c55e;
    --radius-lg: 20px;
    --radius-md: 18px;
    --radius-sm: 16px;
    --shadow-sm: 0 8px 20px rgba(0,0,0,0.15);
    --shadow-md: 0 14px 28px rgba(0,0,0,0.14);
    --shadow-lg: 0 16px 32px rgba(0,0,0,0.28);
    --transition: 0.3s ease;
    --font: 'Poppins', sans-serif;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    color: var(--text-main);
}

/* ================= PAGE ================= */
.page {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    flex: 1;
}

/* ================= HEADER ================= */
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 19px;
    margin-left: 23px;
    margin-right: 23px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 100%;
    max-width: 300px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
}

    .brand-text a {
        text-decoration: none;
        gap: 5px;
    }

    .brand-text span {
        color: var(--accent);
    }

.brand-sub {
    font-size: 16px;
    letter-spacing: 3px;
    margin-top: -20px;
}

.slogan {
    font-size: 10px;
}

.title {
    max-width: 520px;
    text-align: right;
}

    .title h3 {
        font-size: 23px;
        font-weight: 600;
        background: linear-gradient(90deg, #1e2952, #7d1f8e, #c10d30);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .title p {
        font-size: 12px;
        color: var(--muted);
        margin-top: 6px;
        line-height: 1.5;
    }

/* ================= CONTENT ================= */
.content {
    display: grid;
    grid-template-columns: 50% 28%;
    gap: 36px;
    align-items: center;
    justify-content: center;
}

/* ================= IMAGE CARD ================= */
.image-card {
/*    height: 68vh;*/
    aspect-ratio: 16 / 9;
    padding: 6px;
    border-radius: var(--radius-lg);
    background-color: rgba(29, 53, 87, 0.5); /* 50% opacity */
    position: relative;
    display: inline-block;
}

    .image-card img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-sm);
    }

/* ================= SLIDER ARROWS ================= */
.slider-arrow {
    color: var(--primary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.slider-arrow-left {
    left: -35px;
}

.slider-arrow-right {
    right: -35px;
}

/* ================= LOGIN CARD ================= */
.login-card {
    min-height: 400px;
    padding: 35px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

    .login-card:hover {
        transform: translateY(-6px) scale(1.03);
        box-shadow: var(--shadow-md), 0 6px 12px rgba(0,0,0,0.08);
    }

    .login-card h2 {
        font-size: 28px;
        font-weight: 800;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.login-sub {
    margin-top: 4px;
    font-size: 12.5px;
    color: #bdbaba;
    line-height: 1.5;
}

.divider {
    height: 1px;
    background: #ddd;
    margin: 18px 0 22px;
}

/* ================= INPUT ================= */
.field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

    .field span {
        font-size: 24px;
        color: var(--primary);
        transition: var(--transition);
    }

    .field input {
        width: 100%;
        border: none;
        border-bottom: 1px solid var(--primary);
        padding: 8px 0;
        font-size: 12.5px;
        outline: none;
        transition: var(--transition);
    }

    .field:focus-within span {
        color: var(--success);
    }

    .field:focus-within input {
        border-color: var(--success);
    }

/* ================= OPTIONS (Checkbox fix) ================= */
.options {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    margin-bottom: 20px;
}

    .options input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: var(--accent);
        cursor: pointer;
        -webkit-appearance: checkbox;
        -moz-appearance: checkbox;
        appearance: checkbox;
        margin: 0;
    }

    .options label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 500;
        color: var(--muted);
        cursor: pointer;
        z-index: 11;
    }

/* ================= PASSWORD TOGGLE ================= */
.toggle-pass {
    cursor: pointer;
}

/* ================= ACTIONS ================= */
.actions {
    margin-top: -38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pass {
    align-self: flex-end;
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
}

/* ================= BUTTON ================= */
.login-btn {
    margin-top: 18px;
    width: 155px;
    height: 46px;
    border: none;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #073f78, #ee0b40);
    box-shadow: 0 8px 18px rgba(29,53,87,0.18), 0 3px 8px rgba(34,197,94,0.14);
    transition: var(--transition);
}

    .login-btn:hover {
        background: linear-gradient(90deg, #ee0b40, #073f78);
        box-shadow: var(--shadow-lg), 0 8px 15px rgba(34,197,94,0.22);
    }

/* ================= FOOT TEXT ================= */
.features {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
}

    .features a {
        color: var(--accent);
        text-decoration: none;
    }

/* ================= FOOTER ================= */
footer {
    background: linear-gradient(to right, #fbf4f2, #f3e9e6);
    border-top: 1px solid rgba(230,57,70,0.25);
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 28px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
}

.footer-brand img {
    width: 22px;
    animation: spin 2s linear infinite;
}

.footer-inner a {
    margin-left: 18px;
    color: var(--accent);
    text-decoration: none;
}

@keyframes spin {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .brand {
        display: grid;
    }

        .brand img {
            margin: auto;
        }

    .top {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }

    .title {
        text-align: center;
    }

    footer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        gap: 12px;
    }

    /* Mobile layout for content */
    .content {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* Image sticks to the wall */
    .image-card {
        width: 100%;
        max-height: 50vh;
        border-radius: var(--radius-lg);
        padding: 0;
    }

    /* Login card centered and smaller */
    .login-card {
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .image-card {
        max-height: 40vh;
    }

    .login-card {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    .arrow {
        display: none;
    }
}
