:root {
    --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent-color: #3b82f6;
}

* {
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-gradient);
    position: relative;
    overflow-x: hidden;
}

/* Header Navbar */
.header-navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header-navbar .brand-logo img {
    height: 38px;
    width: auto;
}

/* Language Dropdown in Header */
.lang-dropdown-container {
    position: relative;
}

.lang-dropdown-btn {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 9999px;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.lang-dropdown-btn:hover {
    background: #f8fafc;
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.08);
}

.lang-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
    min-width: 150px;
    z-index: 110;
    overflow: hidden;
    padding: 8px 0;
}

.lang-dropdown-menu.show {
    display: block;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.lang-dropdown-item:hover {
    background: #f1f5f9;
    color: var(--accent-color);
}

.lang-dropdown-item img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

/* Background waves/blobs */
.bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(2, 132, 199, 0) 70%);
    bottom: -50px;
    right: -50px;
}

/* Login/Signup Centered layout */
.main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    z-index: 10;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.08), 0 10px 20px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Shoppi Central App Icon inside card */
.app-badge-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.02);
}

/* Headings */
.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container h2 {
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.5px;
}

.logo-container p {
    color: #64748b;
    font-size: 15px;
    margin: 8px 0 0;
    font-weight: 400;
}

/* Styled Fields */
.field-container {
    margin-bottom: 20px;
}

.field-label {
    display: none;
}

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

.input-wrapper i.input-icon-left {
    position: absolute;
    left: 18px;
    color: #94a3b8;
    font-size: 16px;
    z-index: 5;
}

.input-wrapper .form-control {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    height: auto;
}

.input-wrapper .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: white;
    outline: none;
}

.input-wrapper i.toggle-password {
    position: absolute;
    right: 18px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
    z-index: 5;
}

.input-wrapper i.toggle-password:hover {
    color: var(--accent-color);
}

/* Checkbox & Forgot link */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    margin-bottom: 24px;
}

.form-check-label {
    font-size: 13.5px;
    color: #475569;
    font-weight: 500;
}

.forgot-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
}

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

/* Submit Button */
.btn-login {
    background: var(--primary-gradient);
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-weight: 700;
    font-size: 16px;
    color: white;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(15, 23, 42, 0.2);
    color: white;
}

/* Separator text */
.separator-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    margin: 24px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.separator-text::before,
.separator-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.separator-text:not(:empty)::before {
    margin-right: .8em;
}

.separator-text:not(:empty)::after {
    margin-left: .8em;
}

/* Social Grid */
.social-login-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-social {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: #475569;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background: #f8fafc;
}

.btn-google { color: #ea4335; }
.btn-apple { color: #000000; }
.btn-facebook { color: #1877f2; }

/* Flags Row */
.lang-flags-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.flag-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.flag-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.flag-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* App Download Badges */
.app-downloads {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.app-downloads img {
    height: 42px;
    transition: transform 0.2s;
}

.app-downloads a:hover img {
    transform: translateY(-2px);
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 36px;
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #3b82f6;
}

.copyright-text {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 16px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .header-navbar {
        padding: 16px 24px;
    }
    .main-wrapper {
        padding: 90px 16px 30px;
    }
    .login-card {
        padding: 32px 24px;
        border-radius: 28px;
    }
}
