:root {
    --bg-light: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --grad-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --text-main: #1e293b;
    --text-dim: #64748b;
    --danger: #ef4444;
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --radius-lg: 24px;
}

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

body {
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background animated circles */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--grad-primary);
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.blob-1 { top: -100px; right: -100px; animation-delay: 0s; }
.blob-2 { bottom: -100px; left: -100px; animation-delay: -5s; }

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 100px) scale(1.2); }
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 1;
    overflow: hidden; /* For the rotating border */
}

/* Rotating Border Effect */
.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(59, 130, 246, 0.6),
        rgba(139, 92, 246, 0.6),
        transparent 30%
    );
    animation: rotate 4s linear infinite;
    z-index: -2;
}

.auth-card::after {
    content: '';
    position: absolute;
    inset: 2px; /* Border thickness */
    background: var(--bg-card);
    border-radius: calc(var(--radius-lg) - 2px);
    z-index: -1;
    backdrop-filter: blur(20px);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    max-height: 80px;
    max-width: 100%;
    filter: drop-shadow(0 5px 15px rgba(59, 130, 246, 0.2));
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    transition: 0.3s;
}

input {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 1rem 1rem 1rem 3rem;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: var(--primary-light);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

input:focus + i {
    color: var(--primary-light);
}

.btn-auth {
    width: 100%;
    background: var(--grad-primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 1rem;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.5);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    margin-left: 0.25rem;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2.5rem 1.5rem;
    }
}
