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

.auth-container {
    max-width: 400px;
}

.header h1 {
    margin-bottom: 5px;
}

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

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #999;
    cursor: pointer;
    margin: -2px 0 0 0;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.link { color: #667eea; cursor: pointer; text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

.password-requirements {
    background: #fff9e6;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 12px;
    margin-top: 10px;
    font-size: 12px;
    color: #856404;
}

.password-requirements strong {
    display: block;
    margin-bottom: 6px;
    color: #333;
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.password-requirements li {
    margin: 3px 0;
    line-height: 1.4;
    list-style: none;
}

.password-requirements li .req-icon {
    margin-left: 8px;
    font-size: 12px;
    font-weight: bold;
}

.password-requirements li.valid {
    color: #28a745;
}

.password-requirements li.valid .req-icon {
    color: #28a745;
}

.password-requirements li.invalid {
    color: #dc3545;
}

.password-requirements li.invalid .req-icon {
    color: #dc3545;
}

.password-strength {
    margin-top: 12px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background: #f44336;
}

.strength-fill.medium {
    width: 66%;
    background: #ff9800;
}

.strength-fill.strong {
    width: 100%;
    background: #4caf50;
}

.password-strength small {
    font-size: 12px;
    color: #666;
}

.message-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    align-items: flex-start;
    animation: slideDown 0.3s ease-out;
}

.message-alert.show {
    display: flex;
}

.message-alert i {
    font-size: 18px;
    margin-right: 12px;
    margin-top: 2px;
}

.message-alert.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message-alert.success i {
    color: #28a745;
}

.message-alert.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message-alert.error i {
    color: #dc3545;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
