@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── Auth pages — premium, responsive split layout ── */

:root {
    --auth-border-radius: 16px;
    --primary-red: #cc1e1e;
    --text-dark: #1a1a1a;
    --text-grey: #666666;
    --bg-peach: #fff9f9;
    --border-light: #e5e7eb;
}

body {
    /* Pure SVG background with integrated blurry blobs and smooth waves */
    background-color: #f4f5f8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' width='100%25' height='100%25'%3E%3Cdefs%3E%3ClinearGradient id='bgGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23f4f5f8'/%3E%3Cstop offset='100%25' stop-color='%23eef0f4'/%3E%3C/linearGradient%3E%3Cfilter id='blurFilter'%3E%3CfeGaussianBlur stdDeviation='80'/%3E%3C/filter%3E%3ClinearGradient id='waveGrad1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.9'/%3E%3Cstop offset='100%25' stop-color='%23f4f5f8' stop-opacity='0.1'/%3E%3C/linearGradient%3E%3ClinearGradient id='waveGrad2' x1='100%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23fef3f3' stop-opacity='0.8'/%3E%3Cstop offset='100%25' stop-color='%23f5f6f8' stop-opacity='0.1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23bgGrad)'/%3E%3Ccircle cx='200' cy='100' r='250' fill='%23fff0f0' filter='url(%23blurFilter)' opacity='0.6'/%3E%3Ccircle cx='1200' cy='800' r='300' fill='%23e9edf5' filter='url(%23blurFilter)' opacity='0.6'/%3E%3Cpath d='M -200,750 Q 300,550 700,800 T 1640,650 L 1640,1000 L -200,1000 Z' fill='url(%23waveGrad1)'/%3E%3Cpath d='M -200,550 Q 400,350 900,600 T 1640,450 L 1640,1000 L -200,1000 Z' fill='url(%23waveGrad2)' opacity='0.5'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Container ── */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: auto;
}

/* ── Brand mark at top ── */
.auth-brand {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-brand a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.auth-brand a:hover {
    opacity: 0.8;
}

.auth-logo-image {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ── Card ── */
.auth-card {
    background: #fff;
    border-radius: var(--auth-border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(0, 0, 0, 0.02);
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
    transition: all 0.3s ease;
}

/* Apply outfit font to all items inside auth card */
.auth-card,
.auth-card h1,
.auth-card h2,
.auth-card h3,
.auth-card h4,
.auth-card p,
.auth-card label,
.auth-card input,
.auth-card button,
.auth-card a {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.auth-card .subtitle {
    font-size: 14px;
    color: var(--text-grey);
    margin-bottom: 28px;
}

/* ── Custom Split Layout for Login ── */
.auth-card.auth-card-split {
    display: flex;
    max-width: 900px;
    width: 100%;
    min-height: 520px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Left panel style */
.auth-left-panel {
    flex: 1;
    background-color: var(--bg-peach);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #f5eded;
    position: relative;
}

.left-panel-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 320px;
}

.welcome-badge {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.auth-left-panel h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
}

.left-subtitle {
    font-size: 14px;
    color: var(--text-grey);
    line-height: 1.5;
}

.left-panel-illustration {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 20px;
}

.illustration-svg {
    max-width: 260px;
    width: 100%;
    height: auto;
}

/* Right panel style */
.auth-right-panel {
    flex: 1.1;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Form items ── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Inputs with Icons */
.input-wrap {
    position: relative;
    width: 100%;
}

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

.input-icon-right {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 5;
}

.input-icon-right:hover {
    color: var(--text-dark);
}

.form-input-with-icon {
    width: 100%;
    padding: 14px 16px 14px 46px;
    /* Extra left padding for the icon */
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input-with-icon:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3.5px rgba(204, 30, 30, 0.08);
}

.form-input-with-icon::placeholder {
    color: #a0aec0;
}

/* Form Options: Remember / Forgot password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13.5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.remember-me input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-red);
    border: 1.5px solid #dcdcdc;
    border-radius: 4px;
}

.remember-me label {
    cursor: pointer;
    font-weight: 500;
    user-select: none;
}

.forgot-password a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* ── Custom Buttons ── */
.btn-submit {
    width: 100%;
    padding: 14px 20px;
    background: var(--primary-red);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(204, 30, 30, 0.15);
}

.btn-submit:hover {
    background: #b51a1a;
    box-shadow: 0 6px 16px rgba(204, 30, 30, 0.25);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-arrow {
    position: absolute;
    right: 20px;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.btn-submit:hover .btn-arrow {
    transform: translateX(4px);
}

/* Divider styling */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #888888;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.auth-divider:not(:empty)::before {
    margin-right: 16px;
}

.auth-divider:not(:empty)::after {
    margin-left: 16px;
}

/* Google Sign-in button */
.btn-google-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #dadce0;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-google-custom:hover {
    background: #f7f9fa;
    border-color: #c8c8c8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.google-icon-svg {
    width: 18px;
    height: 18px;
}

/* Signup Redirect Link */
.auth-signup-link {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: #666;
}

.auth-signup-link a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
}

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

/* Standard auth card elements (for other pages like signup/forgot password) */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(204, 30, 30, 0.08);
}

.btn-primary {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary-red);
    color: #fff;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: #b51a1a;
}

.btn-primary:active {
    transform: scale(0.98);
}

.form-error {
    margin-top: 6px;
    font-size: 12px;
    color: var(--primary-red);
}

.messages {
    list-style: none;
    margin-bottom: 20px;
}

.messages li {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
}

.messages li.error {
    background: #fff5f5;
    color: var(--primary-red);
    border: 1px solid #fcc;
}

/* ── Responsive Styling ── */
@media (max-width: 860px) {
    .auth-left-panel {
        padding: 36px;
    }

    .auth-right-panel {
        padding: 36px 40px;
    }

    .auth-left-panel h2 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .auth-card.auth-card-split {
        flex-direction: column;
        max-width: 460px;
        min-height: auto;
    }

    .auth-left-panel {
        display: none;
        /* Hide the illustration panel to optimize mobile experience */
    }

    .auth-right-panel {
        padding: 32px 24px;
    }

    .auth-brand {
        margin-bottom: 16px;
    }
}