* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --instacart-green: #0AAD0A;
    --instacart-dark-green: #098709;
    --text-primary: #2E3333;
    --text-secondary: #757575;
    --border-color: #DCDCDC;
    --background: #FFFFFF;
    --hover-background: #F7F7F7;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #FFFFFF;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
}

.header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    flex: 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 24px;
    width: auto;
}

.signup-button {
    background-color: transparent;
    color: var(--instacart-green);
    border: 1px solid var(--instacart-green);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.signup-button:hover {
    background-color: #F0F9F0;
}

.signup-button:active {
    transform: scale(0.97);
}

.content {
    flex: 1;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 32px;
    text-align: center;
    color: #2E3333;
    letter-spacing: -0.02em;
}

.login-form {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 16px;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #DCDCDC;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    background-color: #FFFFFF;
    color: #2E3333;
}

.input-field:focus {
    border-color: #0AAD0A;
    box-shadow: 0 0 0 1px #0AAD0A;
}

.input-field::placeholder {
    color: #757575;
}

.submit-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background-color: #0AAD0A;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.submit-button:hover {
    background-color: #098709;
}

.submit-button:active {
    transform: scale(0.98);
}

.submit-button:disabled {
    background-color: #E8E9EB;
    color: #9B9BA3;
    cursor: not-allowed;
    opacity: 0.6;
}

.divider {
    position: relative;
    text-align: center;
    margin: 24px 0 20px;
}

.divider span {
    font-size: 14px;
    color: #757575;
    font-weight: 400;
}

.social-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.social-button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #DCDCDC;
    border-radius: 100px;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    color: #2E3333;
}

.social-button:hover {
    background-color: #F7F7F7;
    border-color: #BDBDBD;
}

.social-button:active {
    transform: scale(0.97);
}

.social-button svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.social-button span {
    font-weight: 500;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .content {
        padding: 40px 20px;
    }

    .title {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .header {
        padding: 12px 16px;
    }

    .logo img {
        height: 22px;
    }

    .social-button {
        padding: 9px 18px;
        font-size: 13px;
    }

    .signup-button {
        padding: 7px 16px;
        font-size: 13px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid var(--instacart-green);
    outline-offset: 2px;
}

/* Loading state */
.submit-button.loading {
    position: relative;
    color: transparent;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Error state */
.input-field.error {
    border-color: #E52B2B;
}

.input-field.error:focus {
    box-shadow: 0 0 0 1px #E52B2B;
}

.error-message {
    color: #E52B2B;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
