/* ============================================================
   login.css — Bforbiz Loyalty login page
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
    --gold:        #f2b705;
    --gold-dark:   #d4a004;
    --gold-light:  #ffd700;
    --bg-page:     #0a0a0a;
    --bg-card:     #ffffff;
    --bg-input:    #f9fafb;
    --border:      #e5e7eb;
    --text-dark:   #111827;
    --text-mid:    #4b5563;
    --text-light:  #9ca3af;
    --radius-card: 1.5rem;
    --radius-input: 0.75rem;
    --shadow-gold: 0 8px 30px rgba(242, 183, 5, 0.35);
}

/* ── Page shell ─────────────────────────────────────────── */
.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    display: flex;
    align-items: stretch;
}

/* ── Background glow blobs ──────────────────────────────── */
.glow {
    position: absolute;
    width: 24rem;
    height: 24rem;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.10;
    filter: blur(120px);
    pointer-events: none;
}
.glow--top-left     { top: 5rem;    left: 5rem;  }
.glow--bottom-right { bottom: 5rem; right: 5rem; }

/* ── Particles ──────────────────────────────────────────── */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    animation: particle-float 4s ease-in-out infinite;
    opacity: 0.2;
}
@keyframes particle-float {
    0%, 100% { transform: translateY(0)   scale(1);   opacity: 0.2; }
    50%       { transform: translateY(-30px) scale(1.5); opacity: 0.8; }
}

/* ── Layout ─────────────────────────────────────────────── */
.login-layout {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    align-items: stretch;
}

/* ── Hero (left, desktop only) ──────────────────────────── */
.hero {
    display: none;
    flex-direction: column;
    justify-content: center;
    padding-right: 4rem;
    flex: 1;
}
@media (min-width: 1024px) {
    .hero { display: flex; }
}

.hero__logo img {
    height: 8rem;
    object-fit: contain;
    filter: brightness(1.5) contrast(1.2);
    margin-bottom: 3rem;
}

.hero__headline h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}
.hero__headline--gradient {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__headline p {
    font-size: 1.2rem;
    color: #9ca3af;
    margin: 0 0 3rem;
    max-width: 28rem;
    line-height: 1.7;
}

/* ── Floating elements ──────────────────────────────────── */
.floats {
    position: relative;
    height: 20rem;
}
.float {
    position: absolute;
}

/* Gift box */
.float--gift {
    left: 0; top: 0;
    width: 6rem; height: 6rem;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(242, 183, 5, 0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: float-a 4s ease-in-out infinite;
}

/* Loyalty card */
.float--card {
    right: 5rem; top: 2.5rem;
    width: 8rem; height: 6rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(242, 183, 5, 0.4);
    animation: float-b 5s ease-in-out infinite 0.5s;
}

/* Stars */
.float--star { display: flex; align-items: center; justify-content: center; }
.float--star svg { filter: drop-shadow(0 0 10px rgba(242,183,5,0.6)); }
.float--star-lg { left: 8rem; bottom: 5rem; animation: float-spin-cw  6s ease-in-out infinite 1s; }
.float--star-sm { right: 2.5rem; bottom: 2.5rem; animation: float-spin-ccw 5s ease-in-out infinite 1.5s; }

/* Points badge */
.float--badge {
    left: 12rem; top: 8rem;
    padding: 0.6rem 1.5rem;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(242, 183, 5, 0.3);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: float-badge 4.5s ease-in-out infinite 2s;
    white-space: nowrap;
}

@keyframes float-a        { 0%,100%{transform:translateY(0) rotate(0deg)}   50%{transform:translateY(-20px) rotate(5deg)}   }
@keyframes float-b        { 0%,100%{transform:translateY(0) rotate(0deg)}   50%{transform:translateY(-15px) rotate(-5deg)}  }
@keyframes float-spin-cw  { 0%,100%{transform:translateY(0) rotate(0deg)}   50%{transform:translateY(-25px) rotate(180deg)} }
@keyframes float-spin-ccw { 0%,100%{transform:translateY(0) rotate(0deg)}   50%{transform:translateY(-20px) rotate(-180deg)}}
@keyframes float-badge    { 0%,100%{transform:translateY(0) scale(1)}       50%{transform:translateY(-18px) scale(1.05)}    }

/* ── Login column (right) ───────────────────────────────── */
.login-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}
@media (min-width: 1024px) {
    .login-col { width: 50%; }
}

/* ── Card ───────────────────────────────────────────────── */
.login-card {
    width: 100%;
    max-width: 28rem;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    animation: card-in 0.5s ease 0.3s both;
}
@keyframes card-in {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1);    }
}

/* Mobile logo (hidden on desktop) */
.login-card__mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}
.login-card__mobile-logo img {
    height: 5rem;
    object-fit: contain;
    filter: brightness(1.5) contrast(1.2);
}
@media (min-width: 1024px) {
    .login-card__mobile-logo { display: none; }
}

.login-card__header {
    text-align: center;
    margin-bottom: 2rem;
}
.login-card__header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 0.4rem;
}
.login-card__header p {
    color: var(--text-mid);
    margin: 0;
    font-size: 0.95rem;
}

/* ── Flash / alerts ─────────────────────────────────────── */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ── Form ───────────────────────────────────────────────── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.input-wrapper {
    position: relative;
}
.input-icon {
    position: absolute;
    top: 50%; left: 1rem;
    transform: translateY(-50%);
    color: var(--text-light);
    display: flex; align-items: center;
    pointer-events: none;
}
.input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}
.input-wrapper input::placeholder { color: var(--text-light); }
.input-wrapper input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.2);
}

/* Options row */
.login-form__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-mid);
}
.checkbox-label input[type="checkbox"] {
    width: 1rem; height: 1rem;
    accent-color: var(--gold);
    cursor: pointer;
}
.forgot-link {
    font-size: 0.875rem;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}
.forgot-link:hover { color: var(--gold-dark); }

/* Submit button */
.btn-login {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-input);
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-login:hover  { transform: scale(1.02); box-shadow: 0 10px 36px rgba(242,183,5,0.5); }
.btn-login:active { transform: scale(0.98); }

/* ── Footer ─────────────────────────────────────────────── */
.login-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}


