:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --bg-color: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --error: #ef4444;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    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%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    color: var(--primary);
}

.logo svg {
    margin-bottom: 10px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

.form-wrapper {
    position: relative;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden-form {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.active-form {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.input-group input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.btn {
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn {
    background: var(--primary);
    color: white;
    margin-top: 10px;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

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

.primary-btn:active {
    transform: translateY(1px);
}

.switch-form {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.switch-form a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.switch-form a:hover {
    color: var(--primary-hover);
}

.message {
    font-size: 0.875rem;
    text-align: center;
    min-height: 20px;
}

.message.error {
    color: var(--error);
}

.message.success {
    color: var(--success);
}

/* Dashboard specific */
.dashboard-container {
    max-width: 800px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.logout-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.status-card {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.status-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.status-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
