:root {
    --primary-color: #47C2F9;
    --primary-dark: #008CC0;
    --text-color: #333;
    --text-light: #666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #eee;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition-base: all 0.3s ease;
    --success-color: #4CAF50;
    --error-color: #f44336;
    --navbar-height: 64px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--navbar-height);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-signup {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-signup:hover {
    color: var(--primary-dark);
}

.page-container {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.content-wrapper {
    width: 100%;
    max-width: 480px;
}

h1 {
    font-size: 1.5rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--white);
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
}

.form-links {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    z-index: 100;
}

.footer-content {
    max-width: 480px;
    margin: 0 auto;
    padding: 1.5rem 20px;
}

.continue-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    opacity: 0.7;
    margin-bottom: 1rem;
    -webkit-appearance: none;
    appearance: none;
}

.continue-btn:not(:disabled) {
    opacity: 1;
}

.continue-btn:not(:disabled):hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.continue-btn:not(:disabled):active {
    transform: translateY(0);
}

.continue-btn:disabled {
    cursor: not-allowed;
}

.signup-link {
    text-align: center;
    color: var(--text-light);
}

.signup-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Toast Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    animation: slideIn 0.3s ease;
    min-width: 300px;
    max-width: 400px;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--error-color);
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
}

.toast-close:hover {
    color: var(--text-color);
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 20px 160px;
    }

    .fixed-footer {
        background: var(--white);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }
}

@supports (-webkit-touch-callout: none) {
    .main-content {
        padding-bottom: calc(160px + env(safe-area-inset-bottom));
    }
    
    .fixed-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
}