* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: #f8f8f8;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo-mini {
    width: 32px;
    height: 32px;
    background: #1a1a1a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-left:hover {
    opacity: 0.8;
}

.brand {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.brand-name {
    text-decoration: none;
}

.nav-link {
    text-decoration: none;
    color: #666666;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #1a1a1a;
}

.nav-link:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link.login-btn {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.nav-link.login-btn:hover {
    background: #f5f5f5;
    border-color: #1a1a1a;
}

.nav-link.signup-btn {
    padding: 8px 16px;
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    text-decoration: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.nav-link.signup-btn:hover {
    background: #333333;
    border-color: #333333;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.auth-container {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 60px;
}

.tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 16px;
}

.tab {
    padding: 8px 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #999999;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    margin-bottom: -17px;
}

.tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    background: #f8f8f8;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    background: #ffffff;
    border-color: #1a1a1a;
}

.form-group input::placeholder {
    color: #999999;
}

.button-group {
    margin-top: 24px;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #1a1a1a;
    color: #ffffff;
}

.btn-primary:hover {
    background: #333333;
}

.btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:disabled {
    background: #e5e5e5;
    color: #999999;
    cursor: not-allowed;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #999999;
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.divider span {
    padding: 0 12px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #f8f8f8;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: #999999;
}

.footer-text a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-text a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 12px;
    border-left: 3px solid;
}

.alert-error {
    background: #fef5f5;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-success {
    background: #f0fdf4;
    color: #155724;
    border-color: #c3e6cb;
}

.form-content {
    display: none;
}

.form-content.active {
    display: block;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
}

.remember-forgot input[type="checkbox"] {
    cursor: pointer;
    accent-color: #1a1a1a;
}

.remember-forgot a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.back-home {
    text-align: center;
    margin-top: 24px;
}

.back-home a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.back-home a:hover {
    text-decoration: underline;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    color: #1a1a1a;
    padding: 16px 20px;
    border-radius: 8px;
    min-width: 300px;
    max-width: 420px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: slideInRight 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #1a1a1a;
    line-height: 1.5;
}

.toast.success {
    background: #f0fdf4;
    color: #166534;
    border-left-color: #27ae60;
}

.toast.error {
    background: #fef5f5;
    color: #a92d2d;
    border-left-color: #e74c3c;
}

.toast.info {
    background: #f0f9ff;
    color: #0c5a99;
    border-left-color: #3498db;
}

@keyframes slideInRight {
    from {
        transform: translateX(420px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(420px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOutRight 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 32px 24px;
        margin-top: 80px;
    }
    body { padding: 16px; padding-top: 24px; }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 28px 20px;
        margin-top: 72px;
    }
    body { padding: 12px; padding-top: 16px; }
    .tabs { gap: 12px; }
    .toast { min-width: unset; max-width: calc(100vw - 32px); }
    .toast-container { bottom: 16px; right: 16px; left: 16px; }
}
