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

body {
    background: linear-gradient(120deg, #fffdf9, #fce47720);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-container {
    background: #fff;
    padding: 35px 35px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

h2 { color: #111; font-size: 1.8rem; margin-bottom: 20px; }
p { font-size: 0.9rem; color: #555; margin-bottom: 25px; }

.input-field {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-field:focus { border-color: #e9042b; outline: none; }

.btn {
    width: 100%;
    background: #e9042b;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover { background: #c40325; }

.google-btn {
    background: #fff;
    color: #444;
    border: 1px solid #ccc;
    margin-top: 10px;
}

.google-btn:hover { background: #f7f7f7; }

.auth-footer {
    margin-top: 20px;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #e9042b;
    text-decoration: none;
    font-weight: 500;
}

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

@media (max-width: 480px) {
    .auth-container {
        padding: 20px 25px;
        margin-top: 20%;
    }
 }

@media (max-width: 768px) {
    body {
        min-height: 95vh; /* adjust as needed */
    }
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* spinner circle */
.spinner {
    border: 6px solid #f3f3f3; /* Light grey */
    border-top: 6px solid #4CAF50; /* Green */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

/*below css for add child*/

.child-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    width: 100%;
}

/* Desktop: keep everything in one line */
.child-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.age-remove-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Age input + remove button */
.child-age {
    width: 90px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.remove-child {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #e74c3c;
    background: transparent;
    color: #e74c3c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.remove-child:hover {
    background: #e74c3c;
    color: #fff;
}

.add-child {
    border: 1px solid #4CAF50;
    background-color: #4CAF50;
    padding: 5px 10px;
    font-size: 14px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

.add-child:hover {
    background-color: #3a9b40;
    color: #fff;
}

/* Mobile: stack name, keep age + remove in a row */
@media (max-width: 480px) {
    .child-row {
        flex-direction: column;
        gap: 5px;
    }

    .child-input {
        width: 100%;
    }

    .age-remove-wrapper {
        width: 100%;
    }

    .child-age {
        flex: 1; /* take remaining space */
    }

    .remove-child {
        flex: 0 0 auto;
    }
}


