:root {
    --bg-snow: #f8fafc;
    --accent-blue: #0ea5e9;
    --accent-orange: #f97316;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-white: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-snow);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Prevent blobs from extending page height */
    overflow-y: auto;
    position: relative;
}

.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    filter: blur(80px);
    opacity: 0.5;
    background:
        radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(14, 165, 233, 0.12) 0%, transparent 50%);
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: move 25s infinite alternate;
}

.blob-1 {
    background: var(--accent-blue);
    top: -150px;
    left: -150px;
}

.blob-2 {
    background: var(--accent-orange);
    bottom: -150px;
    right: -150px;
    animation-delay: -12s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1.1);
    }

    to {
        transform: translate(150px, 50px) scale(1);
    }
}

.auth-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Centers content vertically */
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
    z-index: 1;
}

.auth-card {
    background: var(--glass-white);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: var(--shadow-premium);
    padding: 48px;
    max-width: 500px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    margin-bottom: 32px;
    /* Replaces auto margin with fixed spacing from footer */
}

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

.auth-header img {
    max-width: 240px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.auth-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.form-label {
    display: block;
    text-align: left;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.form-control {
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.form-control:focus {
    background: white;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.btn-auth {
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    width: 100%;
    margin-top: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-auth:hover:not(:disabled) {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(14, 165, 233, 0.5);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    border-radius: 14px;
    font-size: 14px;
    padding: 14px;
    margin-bottom: 24px;
}

.badge-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-credits {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    /* Slightly larger for readability */
    width: 100%;
    opacity: 0.8;
}

.footer-credits a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}