:root {
    --dark-coffee: #3B2416;
    --espresso: #4B2E2B;
    --mocha-coffee: #6F4E37;
    --cream: #F8F3ED;
    --latte-beige: #EADBC8;
    --warm-white: #FAF7F2;
    --warm-gold: #FFCC80;
    --matcha-green: #7A9D54;
    --elegant-orange: #FFB74D;
    --premium-red: #EF5350;
    --soft-blue: #64B5F6;
    --natural-green: #7A9D54;
    /* Mapped to Matcha Green */

    --gold-glow: rgba(255, 204, 128, 0.45);
    --gold-light: rgba(255, 204, 128, 0.12);
    --card-glass: rgba(59, 36, 22, 0.52);
    --card-border: rgba(248, 243, 237, 0.15);
    --input-glass: rgba(255, 255, 255, 0.04);
    --text-cream: #F8F3ED;
    --text-muted: #EADBC8;

    --blur-val: 18px;
    --bg-overlay: rgba(30, 18, 11, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #120b07;
    background-image: url('../images/bg-cafe.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-cream);
    overflow-x: hidden;
    position: relative;
    padding: 24px 16px;
}

/* Base transparent overlay over body background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    z-index: 1;
    pointer-events: none;
}

/* Ambient glow nodes representing glowing cafe lights */
.ambient-glow-node {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 204, 128, 0.1) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
    filter: blur(40px);
}

.glow-top-right {
    top: -100px;
    right: -100px;
}

.glow-bottom-left {
    bottom: -150px;
    left: -150px;
}

/* Phone-like container on desktop, fits screen on mobile */
.auth-container {
    width: 100%;
    max-width: 380px;
    /* Standard mobile size */
    min-height: 720px;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

/* 3D Leaf Overlays for authentic cafe vibe */
.auth-leaf {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 8px rgba(107, 142, 35, 0.15));
    opacity: 0.85;
}

.leaf-tr {
    top: -30px;
    right: -25px;
    width: 100px;
    transform: rotate(-10deg);
}

.leaf-bl {
    bottom: -30px;
    left: -35px;
    width: 120px;
    transform: rotate(30deg);
}

/* Brand Header */
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.logo-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 204, 128, 0.12) 0%, rgba(78, 52, 46, 0.25) 100%);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 0 8px var(--gold-light);
    position: relative;
}

.logo-wrapper::after {
    content: '';
    position: absolute;
    top: -1.5px;
    left: -1.5px;
    right: -1.5px;
    bottom: -1.5px;
    border-radius: 19.5px;
    background: linear-gradient(135deg, var(--warm-gold), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.35;
}

.logo-svg {
    width: 28px;
    height: 28px;
    fill: var(--warm-gold);
    filter: drop-shadow(0 0 4px var(--gold-glow));
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--cream);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 2px;
}

.logo-text span {
    color: var(--warm-gold);
}

.auth-header h2 {
    font-size: 11px;
    color: var(--warm-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(255, 204, 128, 0.3);
}

/* Glassmorphism Auth Card */
.auth-card {
    background: var(--card-glass);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border: 1px solid var(--card-border);
    border-radius: 26px;
    padding: 24px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 0 15px var(--gold-light);
    animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Sliding Tab switcher matching mockup */
.auth-tabs {
    display: flex;
    background: rgba(26, 15, 9, 0.5);
    border-radius: 14px;
    padding: 4px;
    position: relative;
    margin-bottom: 24px;
    border: 1px solid rgba(245, 230, 211, 0.04);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    padding: 10px 0;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--warm-gold) 0%, #e0b06b 100%);
    color: var(--dark-coffee);
    box-shadow: 0 4px 8px rgba(255, 204, 128, 0.25);
}

.tab-btn:not(.active):hover {
    color: var(--cream);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-left: 2px;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.8;
    transition: stroke 0.3s ease;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    background: var(--input-glass);
    border: 1.5px solid rgba(245, 230, 211, 0.12);
    border-radius: 14px;
    padding: 12px 14px 12px 42px;
    color: var(--cream);
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* Offset passwords right for eye */
.input-wrapper input[type="password"],
.input-wrapper input[type="text"].password-field {
    padding-right: 44px;
}

.input-wrapper input::placeholder {
    color: rgba(197, 181, 165, 0.4);
}

.input-wrapper input:focus {
    outline: none;
    background: rgba(59, 36, 22, 0.6);
    border-color: var(--warm-gold);
    box-shadow:
        0 0 0 3px rgba(255, 204, 128, 0.14),
        0 0 10px rgba(255, 204, 128, 0.08);
}

.input-wrapper input:focus+.input-icon-svg {
    stroke: var(--warm-gold);
    filter: drop-shadow(0 0 2px var(--gold-glow));
}

/* Password Reveal Toggle */
.eye-toggle-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.8;
    transition: stroke 0.3s ease;
}

.eye-toggle-btn:hover .eye-svg {
    stroke: var(--warm-gold);
}

/* Forgot Password Link styling */
.forgot-password-container {
    text-align: right;
    margin-top: -6px;
    margin-bottom: 12px;
}

.forgot-password-link {
    font-size: 11px;
    font-weight: 500;
    color: var(--warm-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.forgot-password-link:hover {
    color: var(--cream);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--espresso) 0%, var(--dark-coffee) 100%);
    border: 1px solid rgba(255, 204, 128, 0.2);
    color: var(--cream);
    padding: 13px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    border-color: var(--warm-gold);
    box-shadow:
        0 12px 24px rgba(59, 36, 22, 0.4),
        0 0 15px rgba(255, 204, 128, 0.15);
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Footer layout elements */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--warm-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--cream);
    text-decoration: underline;
}

/* Laravel Validation errors style */
.error-msg {
    color: #ff8a80;
    font-size: 11px;
    margin-top: 4px;
    margin-left: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

/* Extra decorative glowing hanging light bulbs for top screen frame */
.hanging-bulbs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: radial-gradient(ellipse at top, rgba(255, 204, 128, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

/* Floating custom notification alerts */
.laravel-alert {
    background: rgba(59, 36, 22, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--warm-gold);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 11.5px;
    color: var(--text-cream);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}