/* Premium Modern UI — Delivery Portal Auth */
:root {
    --primary-color: #10b981;
    --primary-hover: #059669;
    --primary-light: rgba(16, 185, 129, 0.1);
    --surface-light: rgba(255, 255, 255, 0.7);
    --surface-dark: rgba(15, 23, 42, 0.7);
    --glass-border-light: rgba(255, 255, 255, 0.5);
    --glass-border-dark: rgba(255, 255, 255, 0.1);
}

body.app-blank {
    font-family: 'Outfit', sans-serif;
    background-color: #f0fdf4;
}

[data-bs-theme='dark'] body.app-blank {
    background-color: #020617;
}

.auth-page-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

/* Animated Background Blobs — Emerald/Teal Palette */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 20s infinite ease-in-out alternate;
}

.bg-blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(16, 185, 129, 0.2); /* Emerald */
    top: -150px;
    right: -100px;
}

.bg-blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(20, 184, 166, 0.2); /* Teal */
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.bg-blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.15); /* Cyan */
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

[data-bs-theme='dark'] .bg-blob-1 {
    background: rgba(16, 185, 129, 0.15);
}
[data-bs-theme='dark'] .bg-blob-2 {
    background: rgba(20, 184, 166, 0.15);
}
[data-bs-theme='dark'] .bg-blob-3 {
    background: rgba(6, 182, 212, 0.1);
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-40px, 60px) scale(1.1);
    }
}

/* Glassmorphism Card */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-light);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    z-index: 1;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-bs-theme='dark'] .auth-card {
    background: var(--surface-dark);
    border-color: var(--glass-border-dark);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes slideUpFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header Typography */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), #14b8a6);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    color: white;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.auth-card:hover .auth-icon {
    transform: rotate(0deg) scale(1.05);
}

.auth-icon i {
    font-size: 32px;
    color: white;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

[data-bs-theme='dark'] .auth-title {
    color: #f8fafc;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 400;
}

[data-bs-theme='dark'] .auth-subtitle {
    color: #94a3b8;
}

/* Badge */
.delivery-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

[data-bs-theme='dark'] .delivery-badge {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* Floating Inputs */
.form-floating {
    margin-bottom: 1.25rem;
}

.form-floating > .form-control {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    height: 3.8rem;
    font-size: 1rem;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

[data-bs-theme='dark'] .form-floating > .form-control {
    border-color: rgba(148, 163, 184, 0.15);
    background-color: rgba(15, 23, 42, 0.5);
    color: #f8fafc;
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

[data-bs-theme='dark'] .form-floating > .form-control:focus {
    background-color: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.form-floating > label {
    padding: 1.15rem 1.25rem;
    color: #64748b;
    font-weight: 500;
}

[data-bs-theme='dark'] .form-floating > label {
    color: #94a3b8;
}

.invalid-feedback {
    font-size: 0.85rem;
    font-weight: 500;
    padding-left: 0.5rem;
    margin-top: 0.25rem;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), #14b8a6);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 200%;
    }
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

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

/* Mobile Adjustments */
@media (max-width: 480px) {
    .auth-card {
        padding: 2.5rem 1.5rem;
        margin: 1rem;
        border-radius: 20px;
    }
    .auth-title {
        font-size: 1.6rem;
    }
    .auth-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1.25rem;
    }
    .auth-icon i {
        font-size: 28px;
    }
}
