@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-hover: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --success: #10b981;
    --error: #ef4444;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.center-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 { font-size: 2.5rem; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-align: center; margin-bottom: 1.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }

.form-group { margin-bottom: 1.5rem; }
label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; }
input { 
    width: 100%; padding: 0.875rem 1rem; 
    background: rgba(15, 23, 42, 0.6); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; box-sizing: border-box; 
    color: white; font-family: 'Outfit', sans-serif;
    font-size: 1rem; transition: all 0.2s;
}
input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }

.input-group { display: flex; align-items: stretch; }
.input-group input { border-radius: 8px 0 0 8px; border-right: none; }
.domain-suffix { 
    background: rgba(255, 255, 255, 0.05); 
    padding: 0.875rem 1rem; 
    border: 1px solid var(--border-color); 
    border-radius: 0 8px 8px 0; 
    color: var(--text-secondary); 
    display: flex; align-items: center;
}

button { 
    width: 100%; padding: 1rem; 
    background: var(--accent-gradient); 
    color: white; border: none; border-radius: 8px; 
    font-weight: 600; font-size: 1.1rem; 
    cursor: pointer; transition: transform 0.1s, opacity 0.2s; 
    font-family: 'Outfit', sans-serif;
}
button:hover { opacity: 0.9; transform: translateY(-1px); }
button:active { transform: translateY(0); }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-inline { width: auto; padding: 0.75rem 2rem; margin-top: 1rem; }

.tabs { display: flex; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.tab { flex: 1; text-align: center; padding: 0.75rem; cursor: pointer; color: var(--text-secondary); font-weight: 600; transition: color 0.2s; }
.tab:hover { color: white; }
.tab.active { color: #3b82f6; border-bottom: 2px solid #3b82f6; }
.tab-content { display: none; animation: fadeIn 0.3s ease-in-out; }
.tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.error { color: var(--error); background: rgba(239, 68, 68, 0.1); padding: 0.75rem; border-radius: 8px; margin-bottom: 1.5rem; text-align: center; font-size: 0.9rem; font-weight: 500; border: 1px solid rgba(239, 68, 68, 0.2); }
.message { color: var(--success); background: rgba(16, 185, 129, 0.1); padding: 0.75rem; border-radius: 8px; margin-bottom: 1.5rem; text-align: center; font-size: 0.9rem; font-weight: 500; border: 1px solid rgba(16, 185, 129, 0.2); }

/* Dashboard & Layout specific */
header { 
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(12px); 
    padding: 1.25rem 2rem; border-bottom: 1px solid var(--border-color); 
    display: flex; justify-content: space-between; align-items: center; 
    position: sticky; top: 0; z-index: 10;
}
header h2 { margin: 0; font-size: 1.5rem; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.header-nav { display: flex; align-items: center; gap: 1.5rem; font-weight: 500; }

.nav-link { color: var(--text-primary); text-decoration: none; transition: color 0.2s; }
.nav-link:hover { color: #3b82f6; }
.logout { color: #ef4444; text-decoration: none; font-weight: 600; padding: 0.5rem 1rem; border-radius: 6px; background: rgba(239, 68, 68, 0.1); transition: background 0.2s; }
.logout:hover { background: rgba(239, 68, 68, 0.2); }

.container { max-width: 900px; margin: 3rem auto; padding: 0 1.5rem; flex: 1; width: 100%; box-sizing: border-box; }
.card-content { padding: 2.5rem; }

pre { background: #0f172a; color: #a5b4fc; padding: 1.5rem; border-radius: 8px; overflow-x: auto; font-family: ui-monospace, monospace; font-size: 0.9rem; line-height: 1.6; border: 1px solid var(--border-color); }
.success-box { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: #34d399; padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 1.1rem; }
.success-box a { color: white; font-weight: bold; text-decoration: underline; text-decoration-color: #34d399; text-underline-offset: 4px; }

/* Lists */
ul { list-style: none; padding: 0; margin: 0; }
li { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; transition: background 0.2s; }
li:last-child { border-bottom: none; }
li:hover { background: rgba(255, 255, 255, 0.02); }
.site-link { color: #60a5fa; text-decoration: none; font-weight: 600; font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.site-link:hover { text-decoration: underline; }
.badge { background: rgba(59, 130, 246, 0.2); color: #60a5fa; padding: 0.35rem 0.75rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 600; border: 1px solid rgba(59, 130, 246, 0.3); }

/* Landing specific */
.landing-hero { text-align: center; max-width: 800px; padding: 4rem 2rem; }
.landing-hero p { font-size: 1.25rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 3rem; }
.landing-btn { display: inline-block; padding: 1.25rem 3rem; font-size: 1.25rem; text-decoration: none; border-radius: 50px; background: var(--accent-gradient); color: white; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5); }
.landing-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.5); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 4rem; text-align: left; }
.feature { background: rgba(255, 255, 255, 0.03); padding: 2rem; border-radius: 16px; border: 1px solid var(--border-color); transition: transform 0.2s; }
.feature:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.05); }
.feature h3 { font-size: 1.25rem; color: #f8fafc; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.feature p { font-size: 1rem; color: var(--text-secondary); margin: 0; line-height: 1.5; }
