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

:root {
    --primary: #22c55e;      /* light green */
    --primary-dark: #16a34a;
    --bg-light: #f0fdf4;
    --white: #ffffff;
    --text-dark: #1f2937;
}

body {
    min-height: 100vh;
    background: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* extra padding for mobile */
}

.auth-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-card {
    background: var(--white);
    width: 350px;
    max-width: 100%; /* make sure it doesn't overflow on small screens */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease; /* smooth resizing */
}

.auth-card h1 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.sub-text {
    font-size: 14px;
    color: gray;
    margin-bottom: 25px;
}

form {
    display: flex;
    flex-direction: column;
}

form input {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

form button {
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

form button:hover {
    background: var(--primary-dark);
}

.switch-text {
    margin-top: 20px;
    font-size: 14px;
}

.switch-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

/* ===== RESPONSIVE STYLES ===== */


@media (max-width: 726px) {
    .auth-card {
        width: 100%;       /* use full width */
        padding: 25px;     /* reduce padding for small screens */
    }

    form input, form button {
        font-size: 0.95rem;  /* slightly smaller input/button text */
        padding: 10px;
    }

    .auth-card h1 {
        font-size: 1.5rem;
    }

    .sub-text, .switch-text {
        font-size: 13px;
    }
}