/* === Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --indigo: #4f46e5;
    --purple: #764ba2;
    --navy-1: #0f0c29;
    --navy-2: #302b63;
    --heading: #1e1b4b;
    --text-secondary: #6366f1;
    --input-border: #c7d2fe;
    --form-bg: #f8f9ff;
    --field-bg: #ffffff;
    --google-border: #e5e7eb;
}

/* Override body dari resources/css/app.css (overflow:hidden; height:100vh; width:100vw)
   yang dibuat untuk halaman landing/undangan, bukan halaman auth ini — tanpa override ini
   konten form yang lebih tinggi dari viewport akan terpotong dan tidak bisa discroll. */
body {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    min-height: 100vh;
    height: auto;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: var(--form-bg);
    color: var(--heading);
    position: relative;
}

html {
    overflow-y: auto;
}

/* Subtle brand-colored blobs behind the card */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 8% 12%, rgba(79, 70, 229, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 92% 88%, rgba(118, 75, 162, 0.05) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

/* =====================================
           AUTH CARD — Split Screen
        ===================================== */
.auth-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 560px;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 24px 60px rgba(15, 12, 41, 0.14),
        0 8px 20px rgba(15, 12, 41, 0.08);
}

/* -------- LEFT PANEL — Photo / Decoration -------- */
.auth-photo {
    display: none;
    position: relative;
    flex: 1 1 46%;
    background-image: url("/assets/bg.png");
    background-size: cover;
    background-position: center;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    color: #ffffff;
    overflow: hidden;
}

@media (min-width: 880px) {
    .auth-photo {
        display: flex;
    }
}

.auth-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(175deg, rgba(15, 12, 41, 0.94) 0%, rgba(30, 27, 75, 0.9) 100%);
}

.photo-brand {
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.photo-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.photo-brand span {
    font-family: "Montserrat", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.photo-brand span em {
    font-style: normal;
    color: #a5b4fc;
}

.photo-content {
    position: relative;
    z-index: 2;
}

.photo-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.photo-sub {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(224, 227, 255, 0.8);
    line-height: 1.65;
    max-width: 320px;
}

/* -------- RIGHT PANEL — Form -------- */
.auth-form-panel {
    flex: 1 1 54%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--form-bg);
    padding: 2.75rem 2.5rem;
}

.login-card {
    width: 100%;
    max-width: 360px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-name {
    font-family: "Montserrat", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: -0.01em;
    line-height: 1;
}

.brand-name span {
    color: var(--indigo);
}

/* Heading */
.auth-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem;
}

.auth-subtext {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Alert / Status */
.alert-info {
    background: #eef2ff;
    border: 1px solid var(--input-border);
    color: #3730a3;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Form */
.form-group {
    margin-bottom: 1.05rem;
}

.input-wrapper {
    position: relative;
}

/* Floating label — sits inline with the field until focused or filled */
.floating-label {
    position: absolute;
    top: 50%;
    left: 2.6rem;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3f5;
    pointer-events: none;
    transition:
        top 0.15s ease,
        left 0.15s ease,
        font-size 0.15s ease,
        color 0.15s ease;
    background: transparent;
    padding: 0 0.3rem;
    z-index: 1;
}

.form-input:focus ~ .floating-label,
.form-input:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    left: 2.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--indigo);
    background: var(--field-bg);
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    color: #818cf8;
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.6rem;
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    background: var(--field-bg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--heading);
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    font-family: "Montserrat", sans-serif;
}

.form-input.has-toggle {
    padding-right: 2.6rem;
}

.form-input::placeholder {
    color: #a5b4fc;
    font-weight: 500;
}

.form-input:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #a5b4fc;
}

.toggle-password:hover {
    color: var(--indigo);
}

.toggle-password svg {
    display: block;
    width: 16px;
    height: 16px;
}

.toggle-password .icon-hide {
    display: none;
}

/* Error */
.form-error {
    font-size: 0.72rem;
    font-weight: 600;
    color: #b91c1c;
    margin-top: 0.3rem;
}

/* Remember row */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.35rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-checkbox {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    border: 1.5px solid var(--input-border);
    accent-color: var(--indigo);
    cursor: pointer;
}

/* Submit Button — solid indigo/purple gradient */
.btn-submit {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--indigo) 0%, #6d5bd0 100%);
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.22);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.28);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Switch link below button */
.auth-switch {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 1.1rem;
}

.auth-switch a {
    color: var(--indigo);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.35rem 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--input-border);
}

.divider span {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Google button — white, thin gray border */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--google-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s,
        border-color 0.2s;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
