:root {
    --bg-dark: #0b0f1a;
    --card-bg: rgba(22, 27, 38, 0.85);
    --input-bg: #1c2331;
    --text-main: #ffffff;
    --text-muted: #8b949e;
    --primary-gradient: linear-gradient(90deg, #ff8c42, #f06292, #ba68c8);
    --orange-glow: #ff8c42;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* --- COLORFUL ANIMATED BACKGROUND --- */
.background-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 15s infinite alternate ease-in-out;
}

.top-left {
    width: 500px;
    height: 500px;
    background: #ff8c42;
    top: -150px;
    left: -100px;
}

.bottom-right {
    width: 600px;
    height: 600px;
    background: #ba68c8;
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.center-burst {
    width: 400px;
    height: 400px;
    background: #f06292;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

/* --- CARD STYLING --- */
.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    text-align: center;
    z-index: 10;
}

.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.logo-icon {
    background: var(--primary-gradient);
    padding: 8px;
    border-radius: 8px;
    font-size: 20px;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.tabs {
    background: var(--input-bg);
    border-radius: 10px;
    display: flex;
    padding: 4px;
    margin-bottom: 25px;
}

.tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.tab.active {
    background: var(--primary-gradient);
    color: white;
}

/* --- GOOGLE BUTTON FIX --- */
.google-btn {
    width: 100%;
    background: #ffffff; /* White background ensures logo visibility */
    border: none;
    color: #1c2331;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    transition: 0.3s;
}

.google-btn:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
}

.google-btn img {
    width: 20px;
    height: 20px;
    display: block; /* Ensures it takes up space */
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 10px;
    font-size: 12px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 15px 14px 45px;
    border-radius: 8px;
    color: white;
    outline: none;
}

.toggle-password {
    left: auto !important;
    right: 15px;
    cursor: pointer;
}

.forgot-link {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--orange-glow);
    text-decoration: none;
    margin-bottom: 20px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-text {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-text a {
    color: var(--orange-glow);
    text-decoration: none;
}

.terms {
    margin-top: 30px;
    font-size: 12px;
    color: var(--text-muted);
}