*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #111c43;
    --primary-foreground: #ffffff;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --background: #f8fafc;
    --foreground: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --card: #ffffff;
    --success: #22c55e;
    --error: #ef4444;
    --ring: rgba(59, 130, 246, 0.5);
}

body {
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    background: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    min-height: 100vh;
    display: flex;
}

/* Left Panel - Branding */
.brand-panel {
    display: none;
    width: 55%;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .brand-panel {
        display: flex;
    }
}

/* Geometric Background Shapes */
.geo-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.geo-shape-1 {
    width: 24rem;
    height: 24rem;
    top: -12rem;
    left: -12rem;
}

.geo-shape-2 {
    width: 20rem;
    height: 20rem;
    bottom: 5rem;
    right: -10rem;
}

.geo-shape-3 {
    width: 16rem;
    height: 16rem;
    top: 50%;
    left: 25%;
}

.brand-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 4rem;
    width: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.6s ease-out;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.logo-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-foreground);
}

.logo-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Illustration Container */
.illustration-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

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

/* Features Section */
.features {
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.features h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-foreground);
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 1280px) {
    .features h2 {
        font-size: 2.5rem;
    }
}

.features h2 span {
    color: var(--accent);
}

.features-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    max-width: 28rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.feature-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 1rem;
    height: 1rem;
    color: var(--accent);
}

.feature-text {
    font-size: 0.875rem;
    color: var(--primary-foreground);
}

.feature-text span {
    color: rgba(255, 255, 255, 0.6);
}

/* Right Panel - Login Form */
.login-panel {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--background);
    position: relative;
}

@media (min-width: 1024px) {
    .login-panel {
        width: 45%;
        padding: 3rem;
    }
}

.login-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at top right,
        rgba(59, 130, 246, 0.05),
        transparent 50%
    );
}

/* Mobile Logo */
.mobile-logo {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-logo {
        display: none;
    }
}

.mobile-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-logo-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.mobile-logo span {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--foreground);
}

/* Login Card */
.login-wrapper {
    position: relative;
    width: 100%;
    max-width: 26rem;
}

.login-card {
    background: var(--card);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px var(--border);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--muted);
    font-size: 0.9375rem;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--success);
    margin-bottom: 2rem;
}

.security-badge svg {
    width: 1rem;
    height: 1rem;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Floating Input */
.input-group {
    position: relative;
}

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

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--muted);
    pointer-events: none;
    transition: color 0.2s;
}

.input-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.floating-input {
    width: 100%;
    padding: 1.125rem 1rem 0.625rem 3rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    background: var(--background);
    color: var(--foreground);
    outline: none;
    transition: all 0.2s;
}

.floating-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--ring);
}

.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    top: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent);
}

.floating-input:focus ~ .input-icon {
    color: var(--accent);
}

.floating-input.error {
    border-color: var(--error);
}

.floating-input.success {
    border-color: var(--success);
}

.floating-label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9375rem;
    color: var(--muted);
    pointer-events: none;
    transition: all 0.2s;
    background: transparent;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--foreground);
}

.password-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.input-status {
    position: absolute;
    right: 1rem;
    display: flex;
    align-items: center;
}

.input-status svg {
    width: 1.25rem;
    height: 1.25rem;
}

.input-status.success {
    color: var(--success);
}

.error-message {
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Remember Me & Forgot Password */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid var(--border);
    border-radius: 0.25rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox:checked {
    background: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
}

.remember-me span {
    font-size: 0.875rem;
    color: var(--muted);
    transition: color 0.2s;
}

.remember-me:hover span {
    color: var(--foreground);
}

.forgot-password {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--accent-hover) 100%
    );
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s;
}

.submit-btn:hover:not(:disabled) svg {
    transform: translateX(4px);
}

.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Divider */
.divider {
    position: relative;
    margin: 2rem 0;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.divider span {
    position: relative;
    background: var(--card);
    padding: 0 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    display: flex;
    justify-content: center;
}

/* Help Text */
.help-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}

.help-text a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}

@font-face {
    font-family: "CameraPlainVariable";
    src: url("https://cdn.gpteng.co/mcp-widgets/v1/fonts/CameraPlainVariable.woff2")
        format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

#lovable-badge {
    --badge-bg: #1b1b1b;
    --badge-text: #c5c1b9;
    --badge-text-hover: #dcdad5;
    --badge-radius: 6px;
    --badge-padding: 8px;
    --badge-gap: 6px;
    --badge-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.88), 0 1px 0 0 rgba(0, 0, 0, 0.04),
        0 2px 2px -1px rgba(0, 0, 0, 0.08), 0 4px 4px -2px rgba(0, 0, 0, 0.08),
        0 8px 8px -4px rgba(0, 0, 0, 0.08), 0 16px 16px -8px rgba(0, 0, 0, 0.08);
    --badge-transition-duration: 0.2s;
    --badge-transition-easing: cubic-bezier(0.16, 1, 0.32, 1);
    --focus-color: #575ecf;
    --focus-offset: 2px;
    --focus-width: 2px;

    position: fixed;
    bottom: 12px;
    right: 12px;
    height: 24px;
    display: flex;
    align-items: center;
    z-index: 1000000;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    border-radius: var(--badge-radius);
    box-shadow: var(--badge-shadow);
    font-size: 12px;
    font-family:
        CameraPlainVariable,
        "CameraPlainVariable Fallback",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    font-weight: 400 !important;
    text-transform: none !important;
    font-feature-settings: normal !important;
    transform: translateZ(0);
    will-change: transform, opacity;
}

#lovable-badge-cta {
    display: flex;
    align-items: center;
    gap: var(--badge-gap);
    padding: 0 var(--badge-padding);
    height: 100%;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--badge-radius) 0 0 var(--badge-radius);
    transition:
        background-color var(--badge-transition-duration) ease,
        color var(--badge-transition-duration) ease,
        transform 0.1s ease;
}

#lovable-badge-cta:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--badge-text-hover);
}

#lovable-badge-cta:active {
    transform: scale(0.98);
}

#lovable-badge-cta:focus {
    outline: none;
}

#lovable-badge-cta:focus-visible {
    outline: var(--focus-width) solid var(--focus-color);
    outline-offset: var(--focus-offset);
    z-index: 1;
}

#lovable-badge-text {
    line-height: 1;
}

#lovable-badge-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

#lovable-badge-close {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 var(--badge-radius) var(--badge-radius) 0;
    flex-shrink: 0;
    transition:
        background-color var(--badge-transition-duration) ease,
        transform 0.1s ease;
}

#lovable-badge-close:hover {
    background: rgba(255, 255, 255, 0.04);
}

#lovable-badge-close:active {
    transform: scale(0.92);
}

#lovable-badge-close:focus {
    outline: none;
}

#lovable-badge-close:focus-visible {
    outline: var(--focus-width) solid var(--focus-color);
    outline-offset: calc(var(--focus-offset) * -1);
    z-index: 1;
}

#lovable-badge-close svg path {
    fill: var(--badge-text);
    transition: fill var(--badge-transition-duration) ease;
}

#lovable-badge-close:hover svg path {
    fill: var(--badge-text-hover);
}

@media (prefers-reduced-motion: reduce) {
    #lovable-badge-cta,
    #lovable-badge-close,
    #lovable-badge-close svg path {
        transition: none;
    }

    #lovable-badge-cta:active,
    #lovable-badge-close:active {
        transform: none;
    }
}

@media (prefers-contrast: high) {
    #lovable-badge {
        --badge-bg: #000;
        --badge-text: #fff;
        --badge-text-hover: #fff;
        border: 2px solid currentColor;
    }

    #lovable-badge-cta:focus-visible,
    #lovable-badge-close:focus-visible {
        outline-width: 3px;
    }
}
