:root {
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.145 0 0);
    --card-foreground: oklch(0.985 0 0);
    --popover: oklch(0.269 0 0);
    --popover-foreground: oklch(0.985 0 0);
    --primary: oklch(0.922 0 0);
    --primary-foreground: oklch(0.205 0 0);
    --secondary: oklch(0.269 0 0);
    --secondary-foreground: oklch(0.985 0 0);
    --muted: oklch(0.269 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --accent: oklch(0.371 0 0);
    --accent-foreground: oklch(0.985 0 0);
    --destructive: oklch(0.704 0.191 22.216);
    --border: oklch(1 0 0 / 10%);
    --input: /* oklch(1 0 0 / 15%); */ oklch(0.145 0 0);
    --ring: oklch(0.556 0 0);
    --chart-1: oklch(0.488 0.243 264.376);
    --chart-2: oklch(0.696 0.17 162.48);
    --chart-3: oklch(0.769 0.188 70.08);
    --chart-4: oklch(0.627 0.265 303.9);
    --chart-5: oklch(0.645 0.246 16.439);
    --sidebar: oklch(0.145 0 0);
    --sidebar-foreground: oklch(0.985 0 0);
    --sidebar-primary: oklch(0.488 0.243 264.376);
    --sidebar-primary-foreground: oklch(0.985 0 0);
    --sidebar-accent: oklch(0.269 0 0);
    --sidebar-accent-foreground: oklch(0.985 0 0);
    --sidebar-border: oklch(1 0 0 / 10%);
    --sidebar-ring: oklch(0.439 0 0);
    --transition-speed: 0.3s;
}

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    position: relative;
    background-color: transparent;
    backdrop-filter: blur(1rem);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
    background-image: 
        radial-gradient(circle at -10% -10%, var(--modal-gradient-color, transparent) 0%, transparent 300px),
        radial-gradient(circle at 120% 120%, var(--modal-gradient-color, transparent) 0%, transparent 300px);
    background-repeat: no-repeat;
    --modal-gradient-color: rgba(132, 204, 22, 0.2);
}

.auth-form {
    margin-top: 20px;
}

.auth-input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: var(--foreground);
    background-color: transparent;
    border: none !important;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--background) inset !important;
    -webkit-text-fill-color: var(--foreground) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.floating-group {
    position: relative;
    width: 100%;
}

.floating-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--muted-foreground);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 5;
    padding: 0 1px;
    transform-origin: left top;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 24px);
}

.floating-fieldset {
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    bottom: 0px;
    margin: 0;
    padding: 0 8px;
    pointer-events: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.3s ease;
    z-index: 4;
}

.floating-legend {
    width: auto;
    max-width: 0;
    height: 11px;
    font-size: 0.8rem;
    padding: 0;
    visibility: hidden;
    transition: max-width 0.1s ease;
    white-space: nowrap;
}

.floating-legend span {
    opacity: 0;
}

.floating-input:not(:placeholder-shown) ~ .floating-fieldset,
.floating-input:-webkit-autofill ~ .floating-fieldset {
    border-color: var(--border);
}

.floating-input:not(:placeholder-shown) ~ .floating-label,
.floating-input:-webkit-autofill ~ .floating-label {
    top: 0;
    transform: translateY(-50%) scale(0.8);
    color: var(--muted-foreground);
}

.floating-input:focus ~ .floating-fieldset {
    border-color: var(--primary);
}

.floating-input:focus ~ .floating-label {
    top: 0;
    transform: translateY(-50%) scale(0.8);
    color: var(--primary);
}

.floating-input:focus ~ .floating-fieldset .floating-legend,
.floating-input:not(:placeholder-shown) ~ .floating-fieldset .floating-legend,
.floating-input:-webkit-autofill ~ .floating-fieldset .floating-legend {
    max-width: 100%;
    visibility: visible;
    padding: 0 4px;
}

.auth-submit-button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-foreground);
    background: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    margin-top: 30px;
    width: 100%;
}

.auth-modal-content .icon-text svg[data-lucide="lock"] {
    color: #84cc16;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-modal-content .info-title,
.auth-modal-content .info-text {
    text-align: left !important;
    display: block;
}

@media (max-width: 768px) {
    .auth-modal-content {
        background-image: 
            radial-gradient(circle at -20% -20%, var(--modal-gradient-color, transparent) 0%, transparent 300px),
            radial-gradient(circle at 130% 130%, var(--modal-gradient-color, transparent) 0%, transparent 300px);
    }
}