/* resources/css/auth.css */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

:root {
    --brand-red: #E21C21;
    --brand-dark-red: #B31419;
    --brand-black: #000000;
    --brand-dark-black: #111111;
    --dark-bg: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
}

body { 
    height: 100vh; 
    overflow: hidden; 
    background-color: var(--bg-body); 
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-wrapper { 
    display: flex; 
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-section {
    flex: 1.5; 
    position: relative;
    background: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
    z-index: 1;
}

.top-brand {
    position: absolute;
    top: 50px; left: 60px;
    font-size: 32px;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 20;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.top-brand span { color: var(--brand-red); }

.hero-content { 
    position: relative; 
    z-index: 10; 
    border-left: 5px solid var(--brand-red);
    padding-left: 40px;
}

.hero-text h1 { 
    font-size: 64px; 
    font-weight: 800; 
    line-height: 1; 
    margin-bottom: 15px; 
    color: white; 
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-text span { 
    color: var(--brand-red);
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    display: block;
    margin-top: 5px;
    text-shadow: none; 
    background: rgba(255,255,255,0.9); 
    display: inline-block;
    padding: 0 10px;
    transform: skewX(-10deg);
}

.hero-text p { 
    font-size: 18px; 
    color: white; 
    max-width: 500px; 
    line-height: 1.6; 
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    margin-top: 20px;
}

/* --- APP-LIKE FORM SECTION --- */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-body);
    position: relative;
    overflow: hidden; /* Contains the curve */
}

/* Background Curve */
.app-header-curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35%; 
    background: linear-gradient(to bottom right, var(--brand-red), var(--brand-dark-red));
    clip-path: ellipse(150% 100% at 50% 0%);
    transition: background 0.5s ease;
    z-index: 1;
}

.app-header-curve.admin-mode {
    background: linear-gradient(to bottom right, var(--brand-black), var(--brand-dark-black));
}

/* Main Container simulating Mobile Screen */
.form-card-app {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    height: 100%;
    max-height: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-top: 15%; /* Spacing so logo hits the curve */
}

/* Circular Logo */
.logo-container-app {
    width: 110px;
    height: 110px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 10;
    padding: 10px;
}
.logo-container-app img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Brand Text */
.brand-header { text-align: center; margin-bottom: 25px; }
.brand-header h2 { font-size: 24px; color: var(--text-main); font-weight: 800; }
.brand-header p { color: var(--text-muted); font-size: 14px; font-weight: 500; }

/* Switch Tabs (Pill style) */
.tabs-app {
    display: flex;
    background: #e2e8f0;
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 25px;
}
.tab-btn-app {
    flex: 1;
    padding: 12px 15px;
    border-radius: 25px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}
.tab-btn-app.active {
    background: white;
    color: var(--brand-red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.tab-btn-app.active.admin-tab-active {
    color: var(--brand-black);
}

/* Form inputs */
.input-block { margin-bottom: 18px; }
.input-block label { 
    display: block; font-size: 12px; font-weight: 700; color: var(--text-main); 
    text-transform: uppercase; margin-bottom: 6px; 
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon svg {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: #94a3b8;
    transition: 0.3s;
}

.input-field {
    width: 100%; 
    padding: 14px 15px 14px 44px; /* Space for left icon */
    background-color: white; 
    border: 1px solid #cbd5e1;
    border-radius: 12px; 
    font-size: 14px; 
    color: var(--text-main); 
    transition: 0.3s;
}

.input-field:focus {
    outline: none; border-color: var(--brand-red); background-color: white;
    box-shadow: 0 0 0 3px rgba(226, 28, 33, 0.1);
}
.input-field:focus + svg, .input-field:focus ~ svg {
    color: var(--brand-red);
}

.admin-mode-active .input-field:focus {
    border-color: var(--brand-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}
.admin-mode-active .input-field:focus + svg, .admin-mode-active .input-field:focus ~ svg {
    color: var(--brand-black);
}

/* Submit Button */
.submit-btn {
    width: 100%; padding: 15px; 
    background: linear-gradient(to right, var(--brand-red), var(--brand-dark-red)); 
    color: white; border: none;
    border-radius: 12px; font-size: 15px; font-weight: 700; text-transform: uppercase;
    cursor: pointer; transition: 0.3s; margin-top: 10px;
    box-shadow: 0 6px 15px rgba(226, 28, 33, 0.25);
}

.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(226, 28, 33, 0.3); }

.admin-mode-active .submit-btn {
    background: linear-gradient(to right, var(--brand-black), var(--brand-dark-black));
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}
.admin-mode-active .submit-btn:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }

.divider {
    display: flex; align-items: center; text-align: center; margin: 25px 0; color: #94a3b8; font-size: 12px;
}
.divider::before, .divider::after {
    content: ''; flex: 1; border-bottom: 1px solid #e2e8f0;
}
.divider span { padding: 0 10px; }

.google-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px; background-color: white; border: 1px solid #e2e8f0; border-radius: 12px;
    color: #1e293b; font-weight: 700; font-size: 14px; cursor: pointer; transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.google-btn:hover { background-color: #f8fafc; border-color: #cbd5e1; transform: translateY(-1px); }

.form-wrapper { display: none; }
.form-wrapper.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.forgot-pass { color: var(--brand-red); text-decoration: none; font-weight: 600; font-size: 12px; display: block; text-align: right; margin-top: 5px; transition: 0.3s;}
.forgot-pass:hover { text-decoration: underline; }
.admin-mode-active .forgot-pass { color: var(--brand-black); }

@media (max-width: 900px) {
    .hero-section { display: none; }
    .form-section { width: 100%; padding: 0; }
    .top-brand { display: block; color: var(--brand-red); top: 20px; left: 20px; font-size: 24px; z-index: 100; text-shadow: none;}
}