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

:root {
    --bg: #f7f7f7;
    --nav: #2a2a72;
    --accent: #192a81;
    --card-bg: #fff;
    --muted: #666;
}
* {
    box-sizing: border-box;
}

body {
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

header {
    width: 100%;
    padding: 20px 50px;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: var(--nav);
}

.signup-top {
    font-size: 14px;
    color: black;
    font-size: medium;
}

.signup-top button {
    color: white;
    text-decoration: none;
    font-weight: bold;
    background-color: var(--nav);
    border: 1px solid var(--nav);
    border-radius: 8px;
    padding: 11px;
}

.signup-top button:hover {
    color: white;
    background-color: var(--accent);
    border: 1px solid var(--accent);
}

body::before {
    content: "";
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 45%;
    background: radial-gradient(
            circle,
            rgba(255, 255, 255, 0.799) 1px,
            transparent 1px
        ),
        /* dots */ linear-gradient(135deg, var(--nav), var(--nav)); /* gradient */
    background-size: 20px 20px, cover; /* spacing of dots */
    border-radius: 100% 100% 0 0;
    z-index: -1;
}

.container {
    background: white;
    width: 450px;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    z-index: 1;
}

h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.google-btn-wrapper {
    display: flex;
    justify-content: center;   /* 🔥 exact center */
    width: 100%;
    margin-bottom: 20px;
}

/* Optional: thoda spacing fix */
.google-btn-wrapper iframe {
    margin: 0 auto !important;
}


.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 20px;
    margin: 0 auto 20px;   /* 👈 center align */
    width: fit-content;
}

.google-btn img {
    width: 20px;
}

.or {
    margin: 15px 0;
    font-size: 14px;
    color: gray;
}

.input-box {
    margin-bottom: 15px;
    text-align: left;
}

.input-box label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.input-box input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
}

.forgot {
    text-align: right;
    font-size: 13px;
    margin-bottom: 20px;
}

.forgot a {
    color: #6c63ff;
    text-decoration: none;
}

.btn {
    width: 100%;
    background: #6c63ff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.btn:hover {
    background: #574fd6;
}

.signup {
    margin-top: 15px;
    font-size: 14px;
}

.signup a {
    color: #6c63ff;
    text-decoration: none;
}

#userInfo {
    display: none;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

#userPic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.input-box {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-box input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    font-size: 14px;
}

#spinner {
    display: none;
    margin: 20px auto;
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #6c63ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.input-box button {
    position: absolute;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #007bff;
    font-size: 14px;
}

#emailError {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}
