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

:root {
    /* Premium Palette */
    --color-bg-mesh-1: #e0e7ff;
    /* Very Light Indigo */
    --color-bg-mesh-2: #f0fdf4;
    /* Very Light Green */
    --color-bg-mesh-3: #fff1f2;
    /* Very Light Rose */

    --color-surface-glass: rgba(255, 255, 255, 0.7);
    --color-surface-glass-hover: rgba(255, 255, 255, 0.85);
    --color-border: rgba(255, 255, 255, 0.5);
    --color-border-hover: rgba(255, 255, 255, 0.8);

    --color-text-primary: #111827;
    --color-text-secondary: #4b5563;
    --color-primary: #2563eb;
    /* Royal Blue */
    --color-primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --color-primary-hover: #1d4ed8;

    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --backdrop-blur: 12px;

    --font-family: 'Inter', sans-serif;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: var(--font-family);
    color: var(--color-text-primary);
    background-color: #f3f4f6;
    /* Animated Gradient Background */
    background-image:
        radial-gradient(at 0% 0%, var(--color-bg-mesh-1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, var(--color-bg-mesh-2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, var(--color-bg-mesh-3) 0px, transparent 50%);
    background-attachment: fixed;
    background-size: 100% 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
    /* Tight tracking for modern feel */
    color: var(--color-text-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Components: Glass Card */
.glass-card {
    background: var(--color-surface-glass);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
}

/* Auth Pages Layout */
.auth-layout {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 500px;
    /* Default logic, but can be wider for split */
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Form Elements */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--color-primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-block {
    width: 100%;
}

/* Hub Dashboard */
.hub-header {
    margin-top: 4rem;
    margin-bottom: 4rem;
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.hub-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    text-align: left;
    /* Modern cards often left-aligned */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #9333ea);
    opacity: 0;
    transition: opacity 0.3s;
}

.hub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hub-card:hover::before {
    opacity: 1;
}

.hub-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hub-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Icons in Hub Cards */
.hub-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 12px;
    background: #f0f5ff;
    border-radius: 12px;
    color: var(--color-primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }
}