/* Premium Auth Theme for Thoughts Refilling */

:root {
    --primary: #bef264;
    --primary-dark: #a3e635;
    --bg-dark: #0a0a0a;
    --surface: #121212;
    --surface-hover: #1e1e1e;
    --border: #262626;
    --text-main: #ffffff;
    --text-muted: #737373;
    --text-dim: #404040;
    --error: #ef4444;
    --success: #bef264;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Background Decorations */
.bg-glow {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: rgba(190, 242, 100, 0.1);
    border-radius: 50%;
    filter: blur(120px);
}

.glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 30%;
    height: 30%;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 50%;
    filter: blur(100px);
}

/* Container */
.auth-container {
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.6s ease-out;
}

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

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

/* Logo Area */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(190, 242, 100, 0.4);
    background: rgba(190, 242, 100, 0.05);
    color: var(--primary);
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.logo-wrapper:hover .logo-icon {
    background: var(--primary);
    color: black;
}

.brand-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
}

.brand-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
}

/* Glass Panel */
.glass-panel {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.panel-glow {
    position: absolute;
    top: -6rem;
    right: -6rem;
    width: 12rem;
    height: 12rem;
    background: rgba(190, 242, 100, 0.1);
    border-radius: 50%;
    filter: blur(60px);
}

/* Typography */
h2 {
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.025em;
}

label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #404040;
    font-size: 20px;
    transition: color 0.3s;
}

input {
    width: 100%;
    height: 3.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0 1rem 0 3rem;
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.3s;
}

input::placeholder {
    color: #262626;
}

input:focus {
    border-color: rgba(190, 242, 100, 0.5);
    box-shadow: 0 0 0 4px rgba(190, 242, 100, 0.1);
}

input:focus+.input-icon {
    color: var(--primary);
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .row {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn-primary {
    width: 100%;
    height: 3.5rem;
    background: var(--primary);
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    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 0 20px rgba(190, 242, 100, 0.2);
}

.btn-primary:hover {
    background: white;
    transform: translateY(-1px);
}

.btn-google {
    width: 100%;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: white;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #404040;
}

.btn-google img {
    width: 1.25rem;
    height: 1.25rem;
}

/* Dividers */
.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider-text {
    padding: 0 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #262626;
    letter-spacing: 0.1em;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.alert-success {
    background: rgba(190, 242, 100, 0.1);
    border: 1px solid rgba(190, 242, 100, 0.2);
    color: var(--primary);
}

/* Footers */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

.footer-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

.bottom-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.action-link {
    color: var(--primary);
    text-decoration: none;
    margin-left: 0.5rem;
}

.action-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}