/* ── Base ─────────────────────────────────────────────────────────── */
:root {
    --brand-dark:  #021324;
    --brand-mid:   #0a6abe;
    --brand-blue:  #064c88;
    --brand-hover: #0f7cdb;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* ── Layout shell ─────────────────────────────────────────────────── */
.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;   /* stack on mobile */
}

/* ── Slide panel (hidden on mobile) ──────────────────────────────── */
.main-slide-container {
    display: none;            /* hidden < 768 px */
    background: linear-gradient(to bottom, var(--brand-mid), var(--brand-dark));
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.main-slide-container img.slide {
    max-width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
}

.image-text {
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 1rem;
    padding: 0 1rem;
}

/* Dot indicators */
.all-slides {
    background-color: #8d8d8d;
    border: 1px solid #8d8d8d;
    border-radius: 50%;
    height: 10px;
    width: 10px;
    display: inline-block;
}

.all-slides.active {
    background-color: #ffffff;
    border-color: #ffffff;
}

/* ── Form panel ───────────────────────────────────────────────────── */
.main-form-container {
    flex: 1;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.main-form-sub-container {
    width: 100%;
    max-width: 480px;
}

/* ── Icon / header ────────────────────────────────────────────────── */
.icon-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.icon-header a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.form-header-container {
    margin-top: 1.25rem;
}

.form-header-container h2 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.form-header {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

/* ── OR divider ───────────────────────────────────────────────────── */
.line-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin: 1rem 0;
}

.line-with-text::before,
.line-with-text::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #ccc;
}

.line-with-text::before { margin-right: 10px; }
.line-with-text::after  { margin-left:  10px; }

/* ── Form inputs ──────────────────────────────────────────────────── */
.form-input {
    width: 100%;
    height: 48px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0 0.75rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(6, 76, 136, 0.12);
}

.form-check-input {
    width: 16px;
    height: 16px;
    border: 1px solid #8d8d8d;
    margin-right: 7px;
    cursor: pointer;
}

.eye-icon {
    cursor: pointer;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* ── Submit button ────────────────────────────────────────────────── */
form button[type="submit"],
.btn-primary-custom {
    width: 100%;
    background-color: var(--brand-blue);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

form button[type="submit"]:hover,
.btn-primary-custom:hover {
    background-color: var(--brand-hover);
}

form button[type="submit"]:active {
    transform: scale(0.98);
}

/* ── Google button ────────────────────────────────────────────────── */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 1.5px solid #dadce0;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    overflow: hidden;
}

.btn-google:hover {
    background-color: #f5f5f5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    color: #333;
    text-decoration: none;
}

.btn-google svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.btn-google span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Alert / error ────────────────────────────────────────────────── */
.alert_error { color: red; font-size: 0.875rem; }

/* ── Links ────────────────────────────────────────────────────────── */
.forgot-password,
.sign-in-link,
.sign-up-link {
    color: var(--brand-blue);
    font-size: 0.875rem;
}

.forgot-password:hover,
.sign-in-link:hover,
.sign-up-link:hover {
    color: var(--brand-hover);
}

/* ── Spacing helpers ──────────────────────────────────────────────── */
.header-input-container {
    width: 100%;
}

/* ── Tablet / Desktop (≥ 768 px) ─────────────────────────────────── */
@media (min-width: 768px) {
    .main {
        flex-direction: row;  /* side-by-side */
    }

    .main-slide-container {
        display: flex;
        width: 50%;
        min-height: 100vh;
        padding: 3rem 2rem;
    }

    .main-form-container {
        width: 50%;
        padding: 3rem 2rem;
    }

    .main-form-sub-container {
        max-width: 420px;
    }

    .btn-google {
        padding: 0.75rem 1.25rem;
    }
}

/* ── Large desktop (≥ 1024 px) ───────────────────────────────────── */
@media (min-width: 1024px) {
    .main-form-sub-container {
        max-width: 460px;
    }

    .main-slide-container img.slide {
        max-height: 400px;
    }
}

/* ── Very small phones (< 360 px) ────────────────────────────────── */
@media (max-width: 359px) {
    .main-form-container {
        padding: 1.25rem 0.75rem;
    }

    .form-header-container h2 {
        font-size: 1.1rem;
    }

    .btn-google {
        font-size: 0.875rem;
    }
}