/* --- FORMS (Login) --- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: flex-start;
    /* Ensure content starts from top */
    background: var(--bg-color);
    /* Fallback */
}

/* Ensure footer stays at bottom if content is short */
.footer {
    margin-top: auto;
    width: 100%;
}

.auth-container {
    flex: 0 0 auto;
    max-width: 450px;
    width: 100%;
    margin: 8rem auto 4rem;
    /* Specific margins to coexist with fixed nav */
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid transparent;
    /* Start transparent for the effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeUp 0.6s ease-out forwards;
    position: relative;
    overflow: hidden;
}

/* Pseudo-element for the gradient border effect */
.auth-container::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.6), transparent 300px);
    z-index: -1;
    border-radius: 18px;
    /* Slightly larger than container */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-container:hover::before {
    opacity: 1;
}

/* Inner content background to sit on top of the gradient border */
.auth-container::after {
    content: "";
    position: absolute;
    inset: 1px;
    /* 1px border width */
    background: var(--surface-color);
    border-radius: 15px;
    z-index: -1;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

form {
    display: flex;
    flex-direction: column;
    position: relative;
    /* Ensure form is above ::after */
    z-index: 1;
}

label {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

input {
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.15);
    /* Increased focus ring */
}

form button {
    margin-top: 2rem;
    font-size: 1rem;
    padding: 0.8rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
}

form button:hover {
    transform: translateY(-4px);
    /* Increased lift */
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    /* Stronger glow */
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
}

form button:active {
    transform: translateY(0);
}