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

:root {
    --primary: #4facfe;
    --secondary: #00f2fe;
    --dark-bg: #1e1e2f;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-color: #333;
    --text-muted: #666;
    --error: #ff4d4f;
    --success: #52c41a;
}

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

/* Auth Page specific styling */
body.auth-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2a0845 0%, #6441A5 100%);
    overflow: hidden;
}

body.dashboard-body {
    background-color: #f4f6f9;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.auth-logo-img {
    width: 220px;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    mix-blend-mode: multiply;
    animation: logoEnter 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    filter: drop-shadow(0 2px 10px rgba(79, 172, 254, 0.2));
}

@keyframes logoEnter {
    0% { transform: translateY(-20px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.auth-header h2 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.error-message {
    color: var(--error);
    font-size: 12px;
    margin-top: 5px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.toggle-form {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.toggle-form a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-form a:hover {
    color: #3182CE;
}

.hidden {
    display: none !important;
}

/* Spinner Overlay */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(79, 172, 254, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Dashboard Styles */
body.dashboard-body {
    background: linear-gradient(135deg, #2a0845 0%, #6441A5 100%);
    min-height: 100vh;
    padding-top: 90px;
    font-family: 'Inter', sans-serif;
}

.dashboard-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.dashboard-logo {
    height: 45px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.user-email-text {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.logout-btn {
    padding: 8px 24px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 10px rgba(79, 172, 254, 0.3);
}

.dashboard-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 50px 40px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
    backdrop-filter: blur(10px);
}

.dashboard-content h2 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
}

.dashboard-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
}

.dashboard-empty-state {
    margin-top: 40px;
    padding: 40px;
    border-radius: 15px;
    background: rgba(79, 172, 254, 0.05);
    border: 1px dashed rgba(79, 172, 254, 0.3);
}

.dashboard-empty-logo {
    width: 120px;
    opacity: 0.8;
    mix-blend-mode: multiply;
    animation: floating 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}
