/* styles.css */

/* ---------- Base ---------- */
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #0a0a0a;
    background: #0f172a;
}

/* ---------- Layout ---------- */
.login-layout {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Full background image */
.login-bg {
    position: absolute;
    inset: 0;
    background: url("/img/background.png") center / cover no-repeat;
    filter: saturate(0.95) contrast(0.98);
}

/* Optional soft haze like the design */
.login-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(230, 243, 255, 0.3);
}

/* Left content (logo + quote) */
.login-side {
    position: relative;
    z-index: 2;
    height: 100vh;
    padding: clamp(24px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none; /* purely decorative */
}

.login-logo {
    width: 130px; /* ⬅ bigger */
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25));
}

.login-quote {
    margin: 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.login-quote p {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.25;
}

.login-quote footer {
    font-size: 16px;
    opacity: 0.9;
}

/* Card on the right */
.login-card {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: clamp(18px, 4vw, 56px);
    transform: translateY(-50%);
    width: min(520px, calc(100% - 36px)); /* ⬅ smaller */
    max-width: 560px;

    background: rgba(245, 251, 255, 0.92);
    border-radius: 24px;
    padding: 36px; /* ⬅ tighter padding */
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
}

.login-card .login-title {
    margin: 0 0 22px;
    font-size: clamp(34px, 3.2vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 800;
}

/* ---------- Form ---------- */
.login-form {
    width: 100%;
}

.login-field {
    margin-top: 18px;
}
.login-field label {
    display: block;
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 10px;
}

.login-field input {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    padding: 0 18px;
    font-size: 18px;
    transition: border-color 160ms ease, background 160ms ease;
}

.login-field input:focus {
    border-color: rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.55);
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.75);
    user-select: none;
}

.login-remember input {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    accent-color: #111;
}

/* Button */
.login-btn {
    display: block;
    width: min(520px, 100%);
    height: 64px;
    margin: 28px auto 0;
    border: none;
    border-radius: 999px;
    background: #060606;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
}

.login-btn:active {
    transform: translateY(0);
    opacity: 0.96;
}

/* ---------- Responsiveness ---------- */
@media (max-width: 980px) {
    .login-card {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: 20px;
    }

    .login-side {
        height: auto;
        min-height: 40vh;
    }
}

@media (max-width: 560px) {
    .login-field label {
        font-size: 22px;
    }
    .login-card {
        border-radius: 22px;
    }
    .login-btn {
        height: 68px;
        font-size: 24px;
    }
}
