/* Global Resets for Auth Pages */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    position: relative;
    overflow-y: auto; /* Allow vertical scroll */
    font-family: 'Outfit', sans-serif;
}

/* Animated Background Shapes */
.shape {
    position: absolute;
    background: linear-gradient(45deg, var(--accent-color, #2563eb), #a78bfa);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
    z-index: -1;
    pointer-events: none; /* Prevent interference with clicks */
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    animation-delay: -5s;
}

/* Mobile Adjustments for Shapes */
@media (max-width: 768px) {
    .shape-1 {
        width: 300px;
        height: 300px;
        top: -50px;
        left: -50px;
    }
    .shape-2 {
        width: 250px;
        height: 250px;
        bottom: -50px;
        right: -50px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(20px) scale(1.05); }
}

/* Container Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    position: relative;
    z-index: 10;
    margin: auto; /* Ensure centering */
}

/* Form Styles */
.form-control {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    border-color: var(--accent-color, #2563eb);
}

.form-floating > label {
    padding-left: 15px;
}

/* Alerts */
.alert-glass {
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.alert-danger-glass { border-color: #ef4444; color: #b91c1c; }
.alert-success-glass { border-color: #22c55e; color: #15803d; }

/* Buttons */
.btn-google {
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    color: #333;
    transition: all 0.3s;
}
.btn-google:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.hover-link {
    transition: color 0.3s ease;
}
.hover-link:hover {
    color: var(--accent-color, #2563eb) !important;
}
